CSS 背景色彩坡形

來源:互聯網
上載者:User
  <style type="text/css">
    html,body
    {
        margin:0px;
        width:100%;
        height:100%;
    }
    .gradient_body {  
        /* Firefox 3.6 */  
        background-image: -moz-linear-gradient(top, #FFFFFF, #4477a1);   
        /* Safari & Chrome */
        background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #4477a1),color-stop(1, #FFFFFF));   
        /* IE6 & IE7 */
        filter:  progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#FFFFFF', endColorstr='#4477a1');  
        /* IE8  */
        -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#FFFFFF', endColorstr='#4477a1')";  
        width:100%;
        height:100%;
    }  
    </style>
 </head>
 <body>
 <div class="gradient_body">
 </div>
 </body>

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.