我有以下代码会产生一个徽标徽标显示它在正确的位置,但a href=""
不工作,为什么?CSS背景不可点击 - a href =“”不工作
HTML:
<div class="banner">
<span><a href="<?php echo BASE_URL()?>link" title="View information about award"></a></span>
</div>
CSS:
div.banner{
width:592px;
height:1px;
position: fixed;
top:0;
right:0;
overflow: visible;
}
div.banner span{
display: block;
position: fixed;
top: 0;
right: 0;
background: url(../../../i/ribbon.png) top right no-repeat;
width: 197px;
height: 145px;
text-indent: -999em;
}
div.opens span a{
display:block;
width: 197px;
height: 145px;
}
Shouldn't它是'div.banner跨度了',而不是'div.opens跨越了'? – insertusernamehere 2013-03-01 19:29:48
比“不工作”更具描述性会更好 – 2013-03-01 19:31:21
你对链接有什么意义? – caramba 2013-03-01 19:31:48