当我将以下 CSS 应用于 IE8/9 并将鼠标悬停在空白区域时,背景会闪烁。
这是HTML
<div style="width: 100%;">
<ul>
<li>
<a class="content" href="javascript:;">
Please mouse over after the words
</a>
</li>
<li>
<a class="content" href="javascript:;">
Please mouse over after the words
</a>
</li>
</ul>
</div>
这是CSS设置
ul {
list-style: none; margin: 0px; padding: 0px; border: 0px; position: relative;
}
li {
padding: 0px; position: relative;
cursor: pointer;
}
.content {
padding: 3px 6px;
border-radius: 4px;
text-decoration: none;
display: block;
}
.content:hover {
margin: 0;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e3f4fd', endColorstr='#c7e9f9',GradientType=0 );
}
您可以在jsfiddle中运行示例