CSS change color of hr tag

Possible Duplicate:
CSS : change color of hr tag

how do you change the color of an hr tag? i looked it up and found this, but it didnt work..

hr{
    color:#CCC;
    background-color:#CCC;
}

Any ideas?


设计边框。

hr{
   border: 1px solid #ccc;
}

Just change the border color. For instance, this HTML produces a red horizontal row.

<hr style="border: 1px solid #f00" />​

尝试改变其边框的颜色

链接地址: http://www.djcxy.com/p/15738.html

上一篇: 在HTML页面中更改hr样式

下一篇: CSS更改hr标签的颜色