我想知道我怎麼能在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