去掉网页中链接虚线框方法汇总
作者:佳明妈 来源:新浪博客 2009-10-14 人气:方法一、
<!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=utf-8" />
<title>懒人建站http://www.51xuediannao.com</title>
<style type="text/css">
a:link,a:visited {
padding:5px 20px;
background:#CCC;
color:#000;
text-decoration:none;
}
a:hover {
background:#F90;
color:#FFF;
}
</style>
</head>
<body>
<a href="http://www.51xuediannao.com" onFocus="this.blur()">懒人建站</a>
</p>
</body>
</html>
方法二、
<!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=utf-8" />
<title>懒人建站--http://www.51xuediannao.com</title>
<style type="text/css">
a:link,a:visited {
padding:5px 20px;
background:#CCC;
color:#000;
text-decoration:none;
}
a:hover {
background:#F90;
color:#FFF;
}
a:focus {
outline:0;/*兼容火狐浏览器*/
}
</style>
</head>
<body>
<a href="http://www.51xuediannao.com" hidefocus="true">懒人建站</a>
</body>
</html>
方法三、
<!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=utf-8" />
<title>懒人建站-http://www.51xuediannao.com</title>
<style type="text/css">
a:link,a:visited {
padding:5px 20px;
background:#CCC;
color:#000;
text-decoration:none;
star:expression(this.onFocus=this.blur());/*让加载样式时同时加载js事件*/
}
a:hover {
background:#F90;
color:#FFF;
}
a:focus {
outline:0;/*兼容火狐浏览器*/
}
</style>
</head>
<body>
<a href="http://www.51xuediannao.com">懒人建站</a>
</body>
</html>
去掉网页中链接虚线框方法汇总由懒人建站收集整理,您可以自由传播,请主动带上本文链接
懒人建站就是免费分享,觉得有用就多来支持一下,没有能帮到您,懒人也只能表示遗憾,希望有一天能帮到您。
去掉网页中链接虚线框方法汇总-最新评论