鼠标指向网页图片时图片周围显示虚线框
鼠标指向网页图片时图片周围显示虚线框
发布时间:2016-12-27 来源:查字典编辑
摘要:图片边框变换CSSHover状态效果,代码如下:图片边框变换CSSHover状态效果将鼠标移至图片,将看到此效果。提示:您可以先修改部分代码...

图片边框变换CSS Hover状态效果,代码如下:

<!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=gb2312" /> <title>图片边框变换 CSS Hover状态效果</title> <style type="text/css"> <!-- h1 {text-align:center;margin-top:50px;} p#outer { margin:0 auto; width:286px; } #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:#EE9309;} --> </style> </head> <body> <h1>将鼠标移至图片,将看到此效果。</h1> <p id="outer"><a href="/"><img width=284 src="http://www.jb51.net/images/logo.gif" alt="www.jb51.net" /></a> </p> </body> </html>

提示:您可以先修改部分代码再运行

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新 Div+Css教程学习
热门 Div+Css教程学习
网页设计子分类