第一种:
<hr style=" height:2px;border:none;border-top:2px dotted #185598;" />
height:2px;是hr的高度
border:none;是没有边框
border-top:2px dotted #185598;是设置横线的样式
dotted 虚线 #185598 颜色
第二种:
<hr style="height:1px;border:none;border-top:1px dashed #0066CC;" />
第三种:
<hr style="height:1px;border:none;border-top:1px solid #555555;" />
第四种:
<hr style="height:3px;border:none;border-top:3px double red;" />
第五种:
<hr style="height:5px;border:none;border-top:5px ridge green;" />
第六种:
<hr style="height:10px;border:none;border-top:10px groove skyblue;" />
border-top:10px groove skyblue; groove 上颜色 skyblue 下颜色
本文介绍了六种不同的HTML中<hr>标签的使用方法,每种样式都展示了不同的高度、边框类型及颜色配置,适用于网页设计中分隔内容的需求。

2万+

被折叠的 条评论
为什么被折叠?



