html div背景颜色渐变

div部分

<div class="tag_cutover">
div>

css部分

.tag_cutover{
	width: 100px;
	heigh: 100px;
    FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr= #2064d0,endColorStr=#070e42); /*IE 6 7 8*/

    background: -ms-linear-gradient(top, #2064d0,  #070e42);        /* IE 10 */

    background:-moz-linear-gradient(top,#2064d0,#070e42);/*火狐*/

    background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#2064d0), to(#070e42));/*谷歌*/

    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#2064d0), to(#070e42));      /* Safari 4-5, Chrome 1-9*/

    background: -webkit-linear-gradient(top, #2064d0, #070e42);   /*Safari5.1 Chrome 10+*/

    background: -o-linear-gradient(top, #2064d0, #070e42);  /*Opera 11.10+*/
}

你可能感兴趣的:(html,css,html5,html)