您的位置:首页 > 其它

兼容IE6,IE7,IE8,friefox,chreom浏览器圆角及渐变效果

2012-01-05 08:46 435 查看
 原文: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>


 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息