为< hr />元件 [英] Styling the <hr /> element
本文介绍了为< hr />元件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想让我的< hr />
(hr)元素变粉红色,我使用下面的CSS规则:
I am trying to make my <hr />
(hr) element pinkish, and am using the following css rule for this:
hr {height: 1px; color: #ed1d61;background-color: #ed1d61;
}
但还是有一条黑线显示。
But there is still a black line showing through it.
(这里是我在网站上看到的: http://www.yemon。
(here is a look at it on the site that I am making: http://www.yemon.org/ , its the only horizontal line in the design.
如何获得统一的粉红色?
How do i get the line uniform pink?
推荐答案
更改为:
hr {
height: 1px;
color: #ed1d61;
background: #ed1d61;
font-size: 0;
border: 0;
}
这篇关于为< hr />元件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文