【发布时间】:2019-07-28 21:06:08
【问题描述】:
在除 IE7 和更低的其他浏览器中,hr 会在 hr 标签周围显示一个边框,我不希望它这样做。
<!--[if lte IE 7]>
<style type="text/css">
hr {
margin: -3px 0 0 0;
padding: 0;
height: 19px;
border: none;
outline: none;
background: url("img/split.png") center no-repeat;
}
</style>
<![endif]-->
我已经尝试过这个解决方案,但它周围似乎仍然有边框。
看起来像这样:
我该如何摆脱它?
【问题讨论】:
-
“新闻”?这看起来像一个标题,所以只需将背景应用到它的顶部,或者它之前的元素的底部。
-
我也会投票反对将 HR-s 用于此类解决方案。
标签: html css internet-explorer