Css3技术已经很成熟了,但是普及率不是很高,今天烈火网再给大家分享一个例子,是关于网页背景渐变的实现,这里使用了gradient属性,不过本例只在IE浏览器下显示效果,稍后给大家发表Firefox浏览器下的网页背景渐变代码,欢迎关注! 示例: <!doctype html> <html> <head> <meta charset="gb2312" /> <title>测试 CSS3渐变色的背景</title> <style type="text/css" rel="stylesheet"> .VeryHuo{ width:300px; height:150px; filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=1); -ms-filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=1); } </style> </head> <body> <div class="VeryHuo"></div> </body> </html><div style="text-align:center;margin:30px 0 0 0;"><hr style="color:#999;height:1px;">如不能显示效果,请按Ctrl+F5刷新本页,更多网页代码:<a href='http://www.veryhuo.com/' target='_blank'>http://www.veryhuo.com/</a></div>提示:可修改后代码再运行! 文章导航 暴风雨前的准备,免费电影网站版权规避技巧Css精美的滑动门布局:圆角、选项卡和Tips等