【css】超级链接点击后出现虚框
<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <style type="text/css"> .a1{ display:inline-block; width:72px; height:27px; line-height:27px; background:url(bluebtn.jpg) no-repeat; text-align:center; border:none; color:#fff; font-size:12px; outline:none;}//chrome\firefox\ie9 .a1:hover{ color:red; text-decoration:none;} .layer01,.layer02{ margin:10px;} </style> </head> <body> <div class="layer01"> <a href="#" class="a1" hidefocus=‘true‘>添加图片1</a> /*针对ie6,ie7*/ </div> <div class="layer02"> <input type="button" value="添加图片2" hidefocus=‘true‘ class="a1"/> </div> </body> </html>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。