- <!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>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>圆角遮罩图片实现图片圆角 by ahuinan 2009-5-15</title>
- <script language="javascript" type="text/javascript" src="http://img.jb51.net/jslib/jquery/jquery-1.3.2.min.js"></script>
- <script language="javascript" type="text/javascript">
- $(function(){
- $(".kuang").after("<div class='kuang_div'><img src='http://www.jb51.net/upload/20090518004805261.png' /></div>");
- })
- </script>
- <style type="text/css">
- li{
- list-style:none;
- float:left;
- margin-right:20px;
- margin-top:20px;
- position:relative;
- }
- img{
- border:0;
- width:94px;
- height:94px;
- }
- .kuang_div{
- position:absolute;
- z-index:1000;
- left:0;
- top:0;
- }
- </style>
- </head>
- <body>
- <div id="board">
- <ul>
- <li><a href="#"><img src="http://www.jb51.net/upload/20090518004805144.gif" class="kuang" /></a></li>
- <li><a href="#"><img src="http://www.jb51.net/upload/20090518004805144.gif" class="kuang" /></a></li>
- <li><a href="#"><img src="http://www.jb51.net/upload/20090518004805144.gif" class="kuang" /></a></li>
- <li><a href="#"><img src="http://www.jb51.net/upload/20090518004805144.gif" class="kuang" /></a></li>
- <li><a href="#"><img src="http://www.jb51.net/upload/20090518004805144.gif" class="kuang" /></a></li>
- <li><a href="#"><img src="http://www.jb51.net/upload/20090518004805144.gif" class="kuang" /></a></li>
- <li><a href="#"><img src="http://www.jb51.net/upload/20090518004805144.gif" class="kuang" /></a></li>
- <li><a href="#"><img src="http://www.jb51.net/upload/20090518004805144.gif" class="kuang" /></a></li>
- </ul>
- </div>
- </body>
- </html>
本站文章大部分为原创,用于个人学习记录,可能对您有所帮助,仅供参考!
我的微信
微信号已复制
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!