CSS 问题:
IE 8 中的不兼容视图中不显示该行
我在 IE8(正常视图)中遇到
问题 这是我的 CSS 样式:
#ViewName hr
{
background-color: #CCCCCC;
border: none;
font-size: 14pt;
}
我可以在 IE8(兼容模式)中看到水平线,但在正常模式下看不到。这是怎么回事?
I am having an issue with <hr>
in IE8 (normal view) This is my CSS styling for that:
#ViewName hr
{
background-color: #CCCCCC;
border: none;
font-size: 14pt;
}
I can see the horizontal lines in IE8 (compatibility mode) but not in normal mode. What is going on here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
边框必须至少为 1 像素,hr 才能在 IE8 中工作。
这不是 IE9 中的问题。
Border has to be 1px minimum for hr to work in IE8.
This is not the issue in IE9.