blog换程序咯,lbs to z-blog » « 一个公告滚动效果

css实现缩略图鼠标移上去显示大图

css实现缩略图鼠标移上去显示大图效果

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>鼠标移上去显示大图</title>
  6. <style type="text/css">
  7. <!--
  8. .pr { position:relative; }
  9. .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; }
  10. .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; }
  11. .pr img { border:1px solid gray; padding:3px; width:200px; position:relative; z-index:1;}
  12. .pr2 a { display:block; width:206px; }
  13. .pr2 a img { border:1px solid gray; padding:3px; width:200px; }
  14. .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; }
  15. .pr2 a:hover img { border:none; padding:0; }
  16. -->
  17. </style>
  18. </head>
  19. <body>
  20. <div class="pr">
  21. <img src="http://www.85flash.com/Files/BeyondPic/2006-1/8/061819573345943.jpg" alt="big" />
  22. <a href="#">效果一</a>
  23. </div>
  24. <div class="pr2">
  25. <a href="#"><img src="http://www.85flash.com/Files/BeyondPic/2006-1/8/061819573345943.jpg" alt="效果二" /></a>
  26. </div>
  27. </body>
  28. </html>

标签:

阅读该文章的读者还阅读了: 您也可以阅读与此文相关的文章: 看看还有没有其他您感兴趣的文章:

想说点什么吗?

引用通告 RSS订阅评论

我要评论