當我將以下CSS應用於IE8/9,並將鼠標懸停在空白區域時,背景將閃爍。如何避免鼠標懸停時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
從GH看沒什麼發生在所有 –