【发布时间】:2011-08-15 18:59:20
【问题描述】:
http://codepopper.com/leon/health/
你好!希望对此有所帮助...如果您在 FireFox 中查看上面的链接,您将能够看到每个绿色行中的文本。但是在 Chrome 中,由于某种原因,文本被隐藏了,我玩过 Z-index,但我还缺少其他东西吗?
HTML:
<!-- Video Row 1 -->
<div class="row">
<img src="images/thumb1.png" alt="Top five tips, facts, myths, and heartburn treatments."/>
<div class="copyBox">
Top five tips, facts, myths, and heartburn treatments.
<img class="float_right" src="images/play_button.png" />
</div>
</div>
CSS:
.row {
float:left;
width:300px;
height: 60px;
background: url(../images/tile_row.jpg) repeat-x;
clear: none;
z-index: -1;
}
.copyBox {
float:right;
text-align: left;
width: 192px;
height: 60px;
font-family: arial;
font-size: 12;
left: 5px;
top: 5px;
z-index: 1;
}
【问题讨论】:
标签: html css image google-chrome background-image