0
我想创建一个菜单,将坚持在移动导航屏幕的底部,所以我用position: fixed
在PC上,但不是移动工作。 下面是我使用的代码:底部的屏幕定位手机CSS
.menu_bar {
background-color: #000;
text-align: center;
height: 75px;
width: 100%;
position: fixed;
bottom: 0;
display:block;
z-index: 9999;
}
Here's the demo 这里是一个Opera Mini的emulator
任何人都知道我为什么不能让它在移动工作?谢谢:)
编辑:我看到,大多数移动浏览器不支持position: fixed
,你知道任何好的替代品吗?也许在JQuery的帮助下?感谢
刚看过那个演示页面,黑条仍然在底部(iPhone 4S) – LeonardChallis 2012-02-05 21:20:22