跨瀏覽器實現CSS濾鏡色彩坡形

來源:互聯網
上載者:User

CSS濾鏡實現色彩坡形

在不同瀏覽器下:

.myClass{     /* 濾鏡漸層 */     /* Firefox 3.6 */     background-image: -moz-linear-gradient(top, #D1EEF5, #ffffff);     /* Safari & Chrome */     background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ffffff), color-stop(1, #D1EEF5));     /* IE6 & IE7 */     filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#D1EEF5', endColorstr='#ffffff');     /* IE8 */     -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#D1EEF5', endColorstr='#ffffff')";}

相關文章

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.