我中心在Firefox的div一個問題,它似乎工作在所有WebKit瀏覽器很好,所以我真的不知道我做錯了什麼:中心div垂直,正常工作與WebKit的錯誤,但在Firefox中
我的CSS:
html {
width: 100%;
height: 100%;
}
body {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
height: 100%;
width: 100%;
}
#Page {
position: absolute;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
}
#LoginBackground {
position: absolute;
margin-top: -45%;
margin-left: -35%;
left: 50%;
top: 50%;
width: 70%;
height: 90%;
}
我的HTML:
<body>
<div id="Page">
<div id="LoginBackground">
</div>
</div>
</body>
這是壁虎工程中的錯誤無論或我是否做錯了什麼。
我不認爲我提供了足夠的信息。你的回答是正確的,但不足以解決我的問題。感謝tho – 2012-04-19 18:16:31
實際上它不適用於當前的Firefox版本。 – 2012-04-20 18:53:10
更新了小提琴,現在在FF11中工作。 – user1289347 2012-04-20 21:52:09