React中样式调整“横线“的使用

可以使用HTML的<hr/>标签

height:2px;是hr的高度;
border:none;是没有边框;
border-top:2px

dotted;是设置横线的样式
none:无样式;

dotted:点线;

dashed:虚线;

solid:实线;
double:双线;

groove:槽线;

ridge:脊线;

inset:内凹;

outset:外凸;

groove 上颜色

skyblue 下颜色

效果如下:

 

 案例代码

<span>1、点线:dotted<span>
<hr style=" height:2px;border:none;border-top:2px dotted black;"/>

    <span>2、虚线:dashed<span>
<hr style="height:1px;border:none;border-top:1px dashed blue;"/>

    <span>3、实线:solid<span>
<hr style="height:1px;border:none;border-top:1px solid yellow;"/>

    <span>4、双线:double<span>
<hr style="height:3px;border:none;border-top:3px double red;"/>

    <span>5、脊线:ridge<span>
<hr style="height:5px;border:none;border-top:5px ridge green;"/>

	<span>6、槽线:groove<span>
<hr style="height:10px;border:none;border-top:10px groove skyblue;"/>

    <span>7、内凹:inset<span>
<hr style="border:6 inset #ff0033" width="100%" SIZE=6>

    <span>8、外凸:outset<span>
<hr style="border:6 outset #ff0033" width="100%" SIZE=6>

    <span>9、两头渐变透明:<span>
<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3)" width="80%" color=#987cb9 SIZE=3>
<hr style="FILTER:borderLine (
    width: 100px;height:2px;
    background: -webkit-linear-gradient(left, #fff -4%, #333 50%, #fff 100%);">
    <span>10、纺锤形:<span>
<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=2)" width="80%" color=#987cb9 SIZE=10>

    <span>11、右边渐变透明:<span>
<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=1)" width="80%" color=#987cb9 SIZE=3>

    <span>12、左边渐变透明:<span>
<hr style="FILTER: alpha(opacity=0,finishopacity=100,style=1)" width="80%" color=#987cb9 SIZE=3>

    <span>13、立体效果:<span>
<hr style="FILTER: progid:DXImageTransform.Microsoft.Shadow(color:#987cb9,direction:145,strength:15)" width="80%"
    color=#987cb9 SIZE=1>

    <span>14、钢针效果:<span>

参考文献

1、HTML <hr> 标签 | 菜鸟教程

2、HTML中横线的使用_m0_67846661的博客-CSDN博客_html 横线

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

QC班长

班长有话说:要是有瓶水喝就好了

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值