我在我的頁面上有一個模態div,它使背景變灰。如果我將覆蓋div的高度設置爲100%,它可以在IE(桌面)上正常工作,但在iPad Safari上,整個高度不會變灰。究竟是什麼問題?它與固定位置/視口有關嗎?請幫忙。以下是同樣的CSS;iPad Safari 100%高度問題
#TB_overlay {
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 100;
}
.TB_overlayBG {
background-color: #000000;
opacity: 0.4;
}
查看我對類似問題的回答,可能會有所幫助http://stackoverflow.com/questions/8205812/jquery-js-ios-4-and-document-height-problems – 2013-03-30 11:43:56