【发布时间】:2014-05-16 21:57:03
【问题描述】:
有问题的网站是:http://www.twisted-perfectionism.com
我有这个#secondary_nav,它应该出现在移动设备的屏幕底部。 它在 Firefox 和 Chrome 中都可以正常工作,但在 Safari 中根本不会出现。使用开发人员工具,我可以看到它放置正确,但它是不可见的。我是新手..请帮忙!
@media only screen and (max-width : 880px) { [...] #secondary_nav {
width: 100%;
height: 12px;
padding-top: 16px;
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: url(../images/trans.png) repeat;
}
#secondary_nav > ul {
clear: left;
float: left;
margin: 0;
padding: 0;
position: relative;
left: 50%;
text-align: center;
display: block;
}
#secondary_nav > ul > li {
width: auto;
display: block;
clear: none;
float: left;
list-style: none;
position: relative;
right: 50%;
}
#secondary_nav ul li ul {
left: 0;
margin-right: 0;
}
#secondary_nav ul li ul li a {
text-align: left;
} [...] }
问题已通过删除解决:
overflow: auto;
页脚现在出现了,但是在 iOS 上,向下滚动时,iOS 底部的 bard 消失了,并且直到我将手指从显示屏上移开后页脚才会下降。
见截图:http://s29.postimg.org/7r49yfzc7/Photo_17_05_14_02_06_16.png
【问题讨论】:
标签: html css iphone mobile safari