日期:2014-05-17 浏览次数:20818 次
在看easyui的linkbutton的源码样式时,发现了一个特殊问题,在IE下使用如下样式
a:hover.l-btn-plain{
border:1px solid #7eabcd;
background:url('images/linkbutton/button_plain_hover.png') repeat-x left bottom;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
?如果<a></a>标签里边没有href属性,此样式时不会起作用的。必须添加上href属性。
<a class="l-btn-plain">不起作用</a>
<a class="l-btn-plain" href="#">起作用</a>