html - 伪类和文本装饰问题 :underline in IE6

标签 html css browser internet-explorer-6

我正在使用一段类似于以下内容的 html:-

<a class="somePseudoClass" title="Blablabla">Something</a>

我在导入的文件中有以下 css。

a.somePseudoClass:hover     {color: #000000; text-decoration: underline;}

这在 Firefox 2.0 中完美运行,但在 IE6 中无法显示下划线。

有人知道解决方法吗?

最佳答案

看起来你需要一个 href 属性来让它工作......

a.somePseudoClass         {text-decoration: none;}
a.somePseudoClass:hover   {color: #000000; text-decoration: underline;}
<a class="somePseudoClass" title="Blablabla" href="#" onclick="return false;">Something</a>

关于html - 伪类和文本装饰问题 :underline in IE6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/320906/

相关文章:

html - 为什么我的 CSS 背景图片没有显示在我的页面上

ios - 如何设置视频的 UIImagePickerController 方向?

javascript - 如何让 window.focus() 在 firefox 中工作

Css float 调整布局

javascript - Javascript 单线程的微妙之处/含义是什么?

html - 如何在多行显示不同高度的图像相互粘连

html - 响应式四列布局 Flexbox 所需的意见

javascript - Hidden Div 中的 NicEdit 变小了

html - 当内容在悬停时变为粗体时防止表格展开

父级和子级的 HTML/CSS 绝对位置