css实现缩略图鼠标移上去显示大图
css实现缩略图鼠标移上去显示大图效果
下载: css-big-img.html
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>鼠标移上去显示大图</title>
- <style type="text/css">
- <!--
- .pr { position:relative; }
- .pr a { border:1px solid gray; padding:3px; width:200px; height:153px; font-size:12px; text-decoration:none; background:url("no.gif"); position:absolute; left:0; top:0; z-index:2; text-indent:-9999px; }
- .pr a:hover { width:10px; height:363px; padding:10px 495px 0 10px; text-indent:0; background:#fff url("http://www.85flash.com/Files/BeyondPic/2006-1/8/061819573345943.jpg") no-repeat 35px 3px; }
- .pr img { border:1px solid gray; padding:3px; width:200px; position:relative; z-index:1;}
- .pr2 a { display:block; width:206px; }
- .pr2 a img { border:1px solid gray; padding:3px; width:200px; }
- .pr2 a:hover { border:1px solid gray; padding:3px; width:200px; height:369px; padding:3px 485px 0 3px; font-size:12px; text-decoration:none; text-indent:0; background:#fff url("http://www.85flash.com/Files/BeyondPic/2006-1/8/061819573345943.jpg") no-repeat 206px 3px; }
- .pr2 a:hover img { border:none; padding:0; }
- -->
- </style>
- </head>
- <body>
- <div class="pr">
- <img src="http://www.85flash.com/Files/BeyondPic/2006-1/8/061819573345943.jpg" alt="big" />
- <a href="#">效果一</a>
- </div>
- <div class="pr2">
- <a href="#"><img src="http://www.85flash.com/Files/BeyondPic/2006-1/8/061819573345943.jpg" alt="效果二" /></a>
- </div>
- </body>
- </html>
标签:css
阅读该文章的读者还阅读了: 您也可以阅读与此文相关的文章: 看看还有没有其他您感兴趣的文章:
Comments(0)
引用通告






