效果
<div class="hr-line-div"></div>
.hr-line-div { margin: 0 auto; height: 2px; 1000px; background: radial-gradient(red 24%, white 100%); }