兼容IE6,IE7,IE8,friefox,chreom浏览器圆角及渐变效果
转载自:http://www.websjy.com/bbs/viewthread.php?tid=9968
- <html>
- <head><title>测试主机Content-Type</title>
- <style type="text/css">
- .test {
- width:560px;
- height:400px;
- background-color:#FFFFFF;
- padding:10px 8px 6px;
- border: 1px solid #C0C0C0;
- margin-bottom:10px;
- /*圆角*/
- border-radius:3px;/*IE6*/
- behavior:url(http://share.job9151.com/ie-css3.htc);/*IE6*/
- -moz-border-radius:3px;-webkit-border-radius:3px;/*非IE6的其它*/
- /*渐变*/
- FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#b8c4cb,endColorStr=#f6f6f8);/*IE6*/
- background:-moz-linear-gradient(top,#b8c4cb,#f6f6f8);/*非IE6的其它*/
- background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#b8c4cb), to(#f6f6f8));/*非IE6的其它*/
- }
- </style>
- </head>
- <body>
- <div class="test">
- 这个页面是用以测试主机是否有正确的content-type。
- </div>
- </body>
- </html>
复制代码下载htc 文件及演示页面:
iecss3.rar (4.16 KB)

浙公网安备 33010602011771号