CSS background 渐变

复制代码
 1 html { margin:0; padding:0; height:100%;
 2   background: url(http://p1.qhimg.com/d/360browser/20130709/backbg.jpg) repeat-x; /* Old browsers */
 3   background: -moz-linear-gradient(top,  #5f9dde 0%, #c1e4ff 100%); /* FF3.6+ */
 4   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5f9dde), color-stop(100%,#c1e4ff)); /* Chrome,Safari4+ */
 5   background: -webkit-linear-gradient(top,  #5f9dde 0%,#c1e4ff 100%); /* Chrome10+,Safari5.1+ */
 6   background: -o-linear-gradient(top,  #5f9dde 0%,#c1e4ff 100%); /* Opera 11.10+ */
 7   background: -ms-linear-gradient(top,  #5f9dde 0%,#c1e4ff 100%); /* IE10+ */
 8   background: linear-gradient(to bottom,  #5f9dde 0%,#c1e4ff 100%); /* W3C */
 9   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5f9dde', endColorstr='#c1e4ff',GradientType=0 ); /* IE6-9 */
10 }
11 @media screen and (max-height: 760px) {
12   html {
13     background: url(http://p1.qhimg.com/d/360browser/20130709/backbg.jpg) repeat-x; /* Old browsers */
14     background: -moz-linear-gradient(top,  #5f9dde 0%, #a1cdf3 100%); /* FF3.6+ */
15     background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5f9dde), color-stop(100%,#a1cdf3)); /* Chrome,Safari4+ */
16     background: -webkit-linear-gradient(top,  #5f9dde 0%,#a1cdf3 100%); /* Chrome10+,Safari5.1+ */
17     background: -o-linear-gradient(top,  #5f9dde 0%,#a1cdf3 100%); /* Opera 11.10+ */
18     background: -ms-linear-gradient(top,  #5f9dde 0%,#a1cdf3 100%); /* IE10+ */
19     background: linear-gradient(to bottom,  #5f9dde 0%,#a1cdf3 100%); /* W3C */
20     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5f9dde', endColorstr='#a1cdf3',GradientType=0 ); /* IE6-9 */
21   }
22 }
复制代码

http://www.theworld.cn/

posted @ 2015-12-29 11:33  yYang365  阅读(249)  评论(0)    收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示