Html
    Css
    Js

    
                        
.aaa {
	width:400px;
	height:50px;
	font-size:24px;
	font-family:'楷体';
	box-sizing:border-box;
	border:3px solid transparent;
	background-clip:padding-box,border-box;
	background-origin:padding-box,border-box;
	background-image:linear-gradient(90deg,#fff,#fff),linear-gradient(90deg,#000,red);
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:2.1.4
 立即下载

Css渐变色input

0