我有一個頁面7個div如下;顯示一個div高於另一個 - css
<div id="container">
<div id="head"></div>
<div id="A">
<div id="A1">A1</div>
<div id="A2"></div>
</div>
<div id="B"></div>
<div id="foot"></div>
</div>
樣式如下所示;
html, body {
margin: 0;
padding: 0;
border: 0;
}
#A, #B, #foot {
position: absolute;
}
#head{
background: #FF9900;
width: 100%;
height: 35px;
}
#A {
top: 35px;
width: 200px;
bottom: 35px;
background-color: #999999;
}
#A1{
height: 35px;
width: 35px;
margin-left: 200px;
background-color: #CC0066;
}
#B {
top: 35px;
left: 200px;
right: 0;
bottom: 35px;
background-color: #99CC00;
}
#foot{
background: #0066CC;
width: 100%;
height: 35px;
bottom: 0;
}
但我的div A1
沒有得到顯示。一個工作小提琴是here。我想在div B
以上顯示div A1
。我怎樣才能解決這個問題??
在此先感謝... :)
blasteralfred
在小提琴上,我可以看到它...... – 2011-04-07 12:11:38
你的工作小提琴確實在工作。我的意思是,檢查這個小提琴:我看到A1:http://jsfiddle.net/rGGEK/13/ – Nanne 2011-04-07 12:12:01
在你發佈的小提琴中顯示正常。但是,一旦這裏的CSS隱藏在小提琴 – JohnP 2011-04-07 12:12:14