【发布时间】:2011-02-13 10:54:01
【问题描述】:
我在 IE6 中有问题,但在 IE>=7、FF 或 Chrome 中没有。这是当你用跨度包装锚标签时引起的。
<span><a href="place"><span>Text</span></a></span>
但这是可行的:
<h1><a href="place"><span>Text</span></a></h1>
它们的唯一样式如下:
div#headeraffiliate a.skin_3 {
width: 550px !important; height: 53px !important;
background: transparent url('images/logo_skin3.gif') top left no-repeat !important;
}
div#header a#logo span,
div#headeraffiliate a#logo span {position: absolute; margin-left: -1000em;}
div#header a#logo,
div#headeraffiliate a#logo {
display: block;
width: 297px; height: 69px;
z-index: 1000;
position: absolute; left:0; bottom:0;
background: transparent url('images/logo.gif') top left no-repeat;
}
【问题讨论】:
标签: html css internet-explorer internet-explorer-6