当前位置: 首页 > 图文教程 > 网页特效 > 图片特效 > 双边框的网页图片而且鼠标经过背景变色
No. « 1 2 › »
关键字
CSS实现双边框的图片,鼠标经过背景变色。
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CSS实现双边框的图片,鼠标经过背景变色</title> <style> *{ margin:0; padding:0; list-style:none; font-size:14px; } h1{ margin:10px; } img{ border:1px solid #ccc; } .info li { padding:5px; width:144px; float:left; } .info li .img { padding:5px; border:1px solid #CBCBCB; display:block; } .info li .img:link,.info li .img:visited { border:1px solid #CBCBCB; } .info li .img:hover{ border:1px solid #CBCBCB; background:#f0f0f0; color:red; } span{ display:block; width:100%; clear:both; text-align:center; } </style> </head> <body> <div class="info"> <ul> <li><a href="http://www.ruanchen.com/"CURSOR: hand" onfocus="this.blur()" onclick="runEx('code')" type="button" value="运行代码" /> [ 提示:你可先修改部分代码,再按Ctrl+A 全部选择 ]
登陆 还没注册?