ie支持css3圆角实现的俩种方式
2011-07-22 10:31
344 查看
1、curvycorners.js引用实现
<title>css3圆角</title>
<script src="curvycorners.js" type="text/javascript"></script>
<style>
.roundedCorners
{
width: 200px;
height: 200px;
padding: 10px;
background-color: Beige;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
}
</style>
<script type="text/JavaScript">
addEvent(window, 'load', initCorners);
function initCorners() {
var setting = {
tl: { radius: 10 },
tr: { radius: 10 },
bl: { radius: 10 },
br: { radius: 10 }, //tl, tr, bl, br分别是:左上角(top-left)、右上角(top-right)、左下角(bottom-left)、右下角(bottom-right)
antiAlias: true
}
curvyCorners(setting, ".roundedCorners");
}
</script>
<div class="roundedCorners">
</div>
2、ie-css3.htc,IE利用VML矢量可标记语言作为画笔汇出圆角
<title>测试主机Content-Type</title>
<style type="text/css">
.roundedCorners
{
width: 500px;
height: 400px;
background-color: blue;
padding: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
behavior: url(ie-css3.htc);
}
</style>
<div class="roundedCorners">
这个页面是用以测试主机是否有正确的content-type。
</div>
curvycorners.js下载
ie-css3.rar下载
原文链接
http://www.css3-html5.com/CSS3-Tutorial/20110711700.html
http://www.css3-html5.com/CSS3-Tutorial/20110711701.html
<title>css3圆角</title>
<script src="curvycorners.js" type="text/javascript"></script>
<style>
.roundedCorners
{
width: 200px;
height: 200px;
padding: 10px;
background-color: Beige;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
}
</style>
<script type="text/JavaScript">
addEvent(window, 'load', initCorners);
function initCorners() {
var setting = {
tl: { radius: 10 },
tr: { radius: 10 },
bl: { radius: 10 },
br: { radius: 10 }, //tl, tr, bl, br分别是:左上角(top-left)、右上角(top-right)、左下角(bottom-left)、右下角(bottom-right)
antiAlias: true
}
curvyCorners(setting, ".roundedCorners");
}
</script>
<div class="roundedCorners">
</div>
2、ie-css3.htc,IE利用VML矢量可标记语言作为画笔汇出圆角
<title>测试主机Content-Type</title>
<style type="text/css">
.roundedCorners
{
width: 500px;
height: 400px;
background-color: blue;
padding: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
behavior: url(ie-css3.htc);
}
</style>
<div class="roundedCorners">
这个页面是用以测试主机是否有正确的content-type。
</div>
curvycorners.js下载
ie-css3.rar下载
原文链接
http://www.css3-html5.com/CSS3-Tutorial/20110711700.html
http://www.css3-html5.com/CSS3-Tutorial/20110711701.html
相关文章推荐
- IE系列不支持圆角等CSS3属性的解决方案
- IE低版本浏览器支持CSS3属性(圆角、阴影、渐变等)(CSS3 PIE)
- 让IE支持CSS3圆角的方法
- IE支持CSS3圆角
- 让IE支持CSS3圆角的方法
- 让IE支持Css3属性(圆角、阴影、渐变)
- 让IE实现CSS3中的border-radius(圆角)
- 让IE支持CSS3圆角的方法
- CurvyCorners -- 让你的IE也支持CSS3圆角
- 让IE实现CSS3中的border-radius(圆角)
- ie-css3.htc(让IE支持box-shadow,圆角,text-shadow)
- ie-css3.htc 支持ie,ff的透明圆角
- 让IE支持CSS3的圆角、阴影等功能
- 只有 IE Chrome Safari 支持 'zoom' 特性并且他们的具体实现方式不同
- IE兼容css3圆角的实现代码
- 让IE支持CSS3圆角的方法
- 让IE支持CSS3圆角的方法
- 让IE支持CSS3圆角的方法
- 纯CSS3实现圆角效果(含IE兼容解决方法)
- 编程实现木马的ActiveX启动和注入IE的启动方式