1 pixel HR skills (compatible with various browsers), pixel hr
Hr {color: # ccc; height: 1px; border: 0px; border-top: 1px solid # ccc; margin: 0px; padding: 0px; overflow: hidden ;}
How to set the hr tag in CSS to a line of 1 pixel, # 3399FF color
<Div style = 'height: 1px; background-color: # 3399FF; line-height: 1px; clear: both; display: block; overflow: Den den '> </div>
The expression of hr in ie and ff may be different. It can be replaced by div.
-----------------------------------
If hr is used, it can only be
-----------------------------------
<Style>
Hr {color: # 3399FF; height: 1px; border: 0px; border-top: 1px solid
# 3399FF; margin: 0px; padding: 0px; overflow: hidden ;}
</Style>
<Hr size = 1/>
To set a one-pixel thick horizontal line, the HTML statement should be __
Height: 1px; font-size: 0px; background: # ff0000; // theoretically, this write method is not compatible.
The html
So you may want to change your mind and use border to solve it.
Height: 12px; font-size: 12px; border-bottom: 1px solid # ff0000;