背景线性突变的语法
background: -webkit-linear-gradient(起始方向, 色彩1, 色彩2, ...);
背景突变必须增加浏览器公有属性。
起始方向能够是方位名词:top 、bottom、left、right,或者是度数,缺省的话,默认为 top。
background: -webkit-linear-gradient(yellow, orange);
background: -webkit-linear-gradient(left, yellow, red, orange);
background: -webkit-linear-gradient(-45deg, yellow, red, orange);
发表回复