纯css实现直线渐变


渐变


.title{  text-align:center;  white-space:nowrap; }

.title hr{  background-color:#f0eff5; border:medium none; display:inline-block; height:1.4px; margin:10px16px; vertical-align:middle; width:32%;

background-image:linear-gradient(to right,transparent,red,transparent);/*两边渐变*/ }

.title.txt{ display:inline-block; font-size:2rem; vertical-align:middle; }

你可能感兴趣的:(纯css实现直线渐变)