Currently I'm having an issue with Internet Explorer 10. I'm pretty sure this happens in older version as well, but 10 is currently the oldest version I have access to test this on.
I'm trying to simply set a CSS font color for an tag within a div class.
.dropdown-content a {
color: #292929;
padding: 0px 10px;
text-decoration: none;
display: block;
text-align: left;
height: 40px;
font-size: 14px;
line-height: 40px;
}
.dropdown-content a:hover {
background-color: white;
color: #B40101;
}
When I load the page up in internet explorer, it seems to have completely ignored the 'color' part of the CSS when I try to look at the CSS in the dev console.
Here's a Screenshot of the CSS in the IE development console 正如您所看到的,它甚至不显示颜色样式代码,即使我显然将它放在CSS文件中。
我已经尝试了所有可以找到的解决方案,但似乎没有什么能让我让浏览器识别出颜色css风格的存在......
任何人都知道为什么IE会这样做?这让我发疯了!
答案 0 :(得分:1)
我刚刚找到了自己问题的答案。这实际上不是CSS问题。在我的html页面顶部,我有以下内容:
<html xmlns="http://www.w3.org/1999/xhtml">
只需删除此行即可修复我遇到的CSS问题。