- <!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>
- </html>
测试时出现了一个BUG问题, background-color:#eeeeee;改成background-color:red; 火狐下没问题, 但在IE中却看不到任何的变化,所以建议大家使用颜色代码RGB!
演示地址:
http://www.malsup.com/jquery/corner/