jquery 插件corner实现圆角边框
论坛链接
- jquery 插件corner实现圆角边框
- 发布时间:2009-12-18 14:00:12 浏览数:11415 发布者:superadmin 设置字体【大 中 小】
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jQuery Corners</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.corners.min.js"></script>
<script type="text/javascript">
$( function(){$('.roundedd').corners();})
</script>
<style type="text/css">
.roundedd
{ background-color:#eeeeee; }
</style>
</head>
<body>
<div style="" class="roundedd"> class="rounded {10px}" </div>
</body>
我测试了一下发现一个问题bug:若background-color:#eeeeee;写成background-color:red;或 background-color:yellow;在火狐没问题,如果是IE的话就看不到效果了,所以建议用颜色RGB代码。
演示地址:
http://www.malsup.com/jquery/corner/
</html>