欧美日韩精品在线,国内精品久久久久久久久,一级毛片恃级毛片直播,清纯唯美亚洲综合欧美色

圖片邊框變換CSSHover狀態(tài)效果一例_DIV+CSS實(shí)例

編輯Tag賺U幣
教程Tag:暫無Tag,歡迎添加,賺取U幣!
  
  我們可能會(huì)經(jīng)常用到此效果,在傳統(tǒng)的做法中,這一效果的實(shí)現(xiàn)是比較困難或繁瑣的,現(xiàn)在通過CSS實(shí)現(xiàn)鼠標(biāo)移至圖片,邊框發(fā)生變換的效果,是非常輕易的。我們看下面的代碼。

  CSS代碼:

示例代碼 [m.dounai2.com]
p#outer {
margin:0 auto;
width:202px;
}
#outer a {
margin:0px;
display:block;
position: relative;
border:1px solid #069;
}
#outer a:hover {border:1px dashed #c00;}
#outer img {display:block;border:none;background:#069;}

  XHTML代碼:

示例代碼 [m.dounai2.com]
<p id="outer"><a href="#">
<img src="http://p1.mb5u.com/divcss/logo3.gif" alt="m.dounai2.com" width="200" height="90" /></a>
</p>

  查看運(yùn)行效果:

代碼調(diào)試框 [m.dounai2.com]

[ 可先修改部分代碼 再運(yùn)行查看效果 ]

來源:無憂整理//所屬分類:DIV+CSS實(shí)例/更新時(shí)間:2007-01-20
相關(guān)DIV+CSS實(shí)例