我想知道我怎么能在IE中使用边框获得圆角的div?jquery的圆形插件+边框
根据jquery插件jquery.corner.js的工作,这将是非常简单的实现! 但是,我不能让一个圆角的“带边框”的div在Internet Explorer中工作大于5 ...
以下代码仅用于测试目的。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>somepage</title>
<script type="text/javascript" src="classes/jquery.js"></script>
<script type="text/javascript" src="classes/jquery.corner.js"></script>
<script type="text/javascript">
$("#teste").corner("round 8px").parent().css('padding', '3px').corner("round 10px");
</script>
<style type="text/css">
.demo{
height: 34px;
width: 450px;
background: blue;
}
</style>
</head>
<body bgcolor="green">
<div id="teste" class="demo">
</div>
</body>
</html>
我在做什么错? 非常感谢,一如既往。
我从来没有使用过这个插件,但#teste的父母是body,所以你试图在将div应用到body后将圆角应用到body上。不知道这里的想法是什么。也看看CSS3PIE:http://css3pie.com/ – 2011-06-15 22:34:12
我现在这样做,谢谢这似乎很有用... – obinoob 2011-06-15 22:39:52