IE页面破解问题

时间:2011-01-29 04:14:54

标签: html css internet-explorer cross-browser

在谷歌浏览器中(我认为是firefox?)页面正确呈现

但在IE中,该页面似乎是“透明的”,请参阅This image

<div style="margin-left:-10px;float:left;width:130px;height:30px; background-image:url('/gc_mycoinamount_display.png');">
<div id="mygoldamount" style="margin-top:7px;">5 Coins</div>

我相信这个div会导致问题,当我删除它时,页面看起来是正确的。它上面的CSS不正确吗?

1 个答案:

答案 0 :(得分:0)

我需要关闭一个div,傻我。

<div style="margin-left:-10px;float:left;width:130px;height:30px; background-image:url('/gc_mycoinamount_display.png');">
<div id="mygoldamount" style="margin-top:7px;">5 Coins</div></div>