效果

csss线条中间粗两边细_css

  



<div class="hr-line-div"></div>


  



.hr-line-div {
margin: 0 auto;
height: 2px;
width: 1000px;
background: radial-gradient(red 24%, white 100%);
}