css渐变线

<div 

style="width:100px;height:20px;opacity: 0.34;

   background-image: linear-gradient(180deg,#0067CE0%,rgba(255,255,255,0.00) 70%);"></div>


  ----------------------------------------------(角度)      (颜色)         (渐变颜色)              (渐变高度)


如下效果图:

猜你喜欢

转载自blog.csdn.net/chenxiaoscode/article/details/62041882