css实现背景条形线
2018-05-27 本文已影响8人
张三与李四

css:
position: absolute;
top: 10px;
left: 10px;
z-index: -1;
width: 80px;
height: 14px;
background: linear-gradient(90deg,#f8087c 30%,rgba(255, 255, 255, 0) 30%);
background-size: 3px 100%;
css:
position: absolute;
top: 10px;
left: 10px;
z-index: -1;
width: 80px;
height: 14px;
background: linear-gradient(90deg,#f8087c 30%,rgba(255, 255, 255, 0) 30%);
background-size: 3px 100%;