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