<div class="header_photo">
<div class="header_inside">
<div class="header_text">
Text
</div>
</div>
<div class="header_photo_transparent"> </div>
</div>
.header_inside
{
top: 0px;
left: 0px;
display: block;
width: 975px;
background: none repeat scroll 0% 0% transparent;
z-index: 4;
position: absolute;
}
.header_text
{
position:absolute;
bottom:15px;
width:500px;
z-index:201;
left:370px;
font-size:12px;
line-height:13px;
}
.header_photo_transparent
{
position:absolute;
bottom:0;
left:0;
width:960px;
height:64px;
background-color: red;
z-index:100;
}
和我想顯示在紅色背景中的字符串的文本,而無需:
- 改變header_photo_transparent的z索引;
- 而不刪除位置:從header_inside
其實我沒有看到串文字絕對的。
爲什麼這種行爲?我該如何解決這個問題?
什麼行爲?什麼麻煩?請描述。 – Sparky
更新了問題。我沒有看到文本字符串:) – markzzz
您的文字是Z = 4,紅色背景元素的容器內爲Z = 100 ......紅色元素將是** **以上文字容器......這是準確的預期行爲。 – Sparky