用户名:
密 码:

设计实例:Hover over下的边框变化

设计实例:Hover over下的边框变化

  <!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>Untitled Document</title>

  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

  <style type="text/css">

  p#outer {

  position:relative;

  float:left;

  margin-top:20px;

  margin-left:20px;

  background: blue;

  }

  #outer a {

  margin:0;

  background-color:blue;

  display:block;

  position: relative;

  border:2px dashed red;

  }

  #outer a:hover {border:2px dashed #CCFFCC;}

  #outer img {display:block;border:none;background:#ffffcc;padding:4px;}

  </style>

  </head>

  <body>

  <h1>Hover over the image to see the double border effect</h1>

  <p id="outer"><a href="#"><img src="http://www.pmob.co.uk/temp/images/screenanother3col.gif" alt="example image border" width="150" height="86" /></a>

  </p>

  </body>

  </html>

  <script language="Javascript">

  var now = new Date();

  document.write("<img src=‘http://counter.yesky.com/counter.shtml?CID=54197&AID=-1&refer="+escape(document.referrer)+"&rand="+ now.getTime()  + "&cur="+escape(document.URL)+"‘ border=‘0‘ alt=‘‘ width=‘0‘ height=‘0‘>");

  </script>

.

  来源:互联网
阅读:
日期:2010-8-5
 
收藏此文 】 【 打印此文 】   
  • 上一篇:设计实例:看看IE中有关1px的Bug
  • 下一篇:没有了
  • TAG: 设计实例:Hover over下的边框变化
    • 官方网址: dns110.com
    • CopyRight © 2010 域名频道 版权所有
    • 地址:上海市松江区新松江路1188弄37号 邮编:201620
    • 电话: 021-67820741 67820742 67820743 传真: 转分机805 值班电话: 021-67820743
    • 在线支持QQ: 219854  客户服务QQ:714658643  MSN:chenlh@dns110.com  Email: support@dns110.com
    • 沪ICP备06024974号