首页 > 开发 > CSS > 正文

ie6不兼容hover ie6 a hover属性失效解决办法

2024-07-11 08:29:01
字体:
来源:转载
供稿:网友

复制代码
代码如下:
<style type="text/css" >
.wdqy
{
background-image: url(../../../images/Common/common.png);
background-repeat: no-repeat;
background-position: -35px -694px;
padding-right: 15px;
}
.wdqy:hover
{
background-image: url(../../../images/Common/common.png);
background-repeat: no-repeat;
background-position: -35px -753px;
padding-right: 15px;
}
</style>

当你用a标签 的时候 要写a:hover属性 那么 请加上 href属性 才会生效

复制代码
代码如下:
<a href="#" class="wdqy">aaa</a>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表