gpt4 book ai didi

css - 奇怪的 :visited behavior in IE8 for LI elements

转载 作者:行者123 更新时间:2023-11-28 14:22:13 24 4
gpt4 key购买 nike

出于某种原因,仅在 IE 中(目前已在 IE 8 上进行过兼容模式和不兼容模式测试),我访问过的链接在访问后以无序列表缩进的形式显示。

http://etech.916networks.com

我的 HTML(通过 PHP 动态生成):

    <ul>
<li>
<a target='_blank' href='http://www.test.com/mylink.html' title='Systems Engineer'>Systems Engineer</a>
</li>
<li>
<a target='_blank' href='http://www.test.com/mylink2.html' title='Validation Engineer'>Validation Engineer
</a>
</li>
</ul>

我的 CSS(这里有额外的东西试图让它工作):

    #latest-updates li {
list-style-type: none;
list-style-image: none;
color: #3c758c;
padding-bottom: 4px;
list-style-position: outside;

}

#latest-updates a, a:visited {
list-style-type: none;
list-style-image: none;
list-style-position: outside;
text-indent: 0;
padding; 0;
margin: 0;
}

#latest-updates a:hover {
text-decoration: none;
color: #25b6d6;
}

感谢任何帮助,这让我发疯!谢谢!

最佳答案

在您的第二个 CSS block 中,我相信您想要。

#latest-updates a, #latest-updates a:visited

否则,您将该样式应用于最新更新中的所有“a”标签以及整个页面上所有已访问的“a”标签。

关于css - 奇怪的 :visited behavior in IE8 for LI elements,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8358592/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com