网页背景渐变 川长思鸟来 2022-08-12 21:00 160阅读 0赞 <!DOCTYPE html> <html> <head> <title>网页背景渐变</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <style type="text/css"> .linear\{ width:100%; height:600px; FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=\#FFF,endColorStr=\#999); /\*IE 6 7 8\*/ background: -ms-linear-gradient(top, \#FFF, \#999); /\* IE 10 \*/ background:-moz-linear-gradient(top,\#FFF,\#999);/\*火狐\*/ background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(\#FFF), to(\#999));/\*谷歌\*/ background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(\#FFF), to(\#999)); /\* Safari 4-5, Chrome 1-9\*/ background: -webkit-linear-gradient(top, \#FFF, \#999); /\*Safari5.1 Chrome 10+\*/ background: -o-linear-gradient(top, \#FFF, \#999); /\*Opera 11.10+\*/ \} </style> <body> <div class="linear"></div> </body> </html>
还没有评论,来说两句吧...