CSS 问题:
IE 8 中的不兼容视图中不显示该行

发布于 2024-12-06 20:30:29 字数 217 浏览 4 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冰葑 2024-12-13 20:30:29

边框必须至少为 1 像素,hr 才能在 IE8 中工作。

#ViewName hr
{
background-color: #CCCCCC;
border: 1px;
font-size: 14pt;
}

这不是 IE9 中的问题。

Border has to be 1px minimum for hr to work in IE8.

#ViewName hr
{
background-color: #CCCCCC;
border: 1px;
font-size: 14pt;
}

This is not the issue in IE9.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文