两句CSS属性让点击图片链接时的虚线框消失 - 疯子的紫梦's 学习窝
Css优先级分析

两句CSS属性让点击图片链接时的虚线框消失

疯子的紫梦 posted @ 2010年1月10日 01:30 in CSS , 3080 阅读

CSS 之
outline (轮廓)是绘制于元素周围的一条线,位于边框边缘的外围,可起到突出元素的作用。

outline 属性是一个简写属性,用于设置元素周围的轮廓线。

注释:轮廓线不会占据空间,也不一定是矩形。
这就可以了,就给点击链接加这个属性   a:active{outline:none}
可惜,IE下无效   再加一个  a:active {blr:expression(this.onFocus=this.blur());}

 

<style>
a:active {outline:none;blr:expression(this.onFocus=this.blur());}
</style>
这样网页中的所有链接点击都没虚线框了(文字链接、图片链接==)
示例:
<style>
a:active {outline:none;blr:expression(this.onFocus=this.blur());}
img,a .img{border:0}
</style>
<a href="#"> <img src="http://bbs.blueidea.com/images/default/newtopic.gif"></a><br>
<a href="#"> <img src="http://www.baidu.com/img/baidu_logo.gif"></a><br>
<a href="#">发新帖</a>

Avatar_small
TBSE 9th Class Syll 说:
2023年9月19日 13:59

Students can go Through the Tripura Board 9th Class Syllabus 2024 Pdf to know the Complete Details about the Examination, which is the Blueprint and the Question Pattern, Down here, we had Provided All the TBSE 9th Class Syllabus 2024 Details about the Tripura Board Class Syllabus 2024 and their PDF Download Links for All the Subjects Bengali, English, Kokborok, Hindi, Mizo , Mathematics, Science, Social Science,TBSE Class new Syllabus 2024 Pdf File Format helps to get an idea About the Concepts and Topics Taught in class for a Subject During this Academic year 2024.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter