当前位置:Gxlcms > html代码 > 如何处理点击后的这个虚线框_html/css_WEB-ITnose

如何处理点击后的这个虚线框_html/css_WEB-ITnose

时间:2021-07-01 10:21:17 帮助过:5人阅读

如图,点击删除后,虚线框竟然延伸到底部,请求高手如何处理呢?我要的是使虚线框仅仅包围文字,不是去掉虚线框哦

删除


回复讨论(解决方案)

...
line-height改了
你本身就给它定了那么高
怎么会没那么高呢

按理说应该不是那个的问题
你的a有没有定义别的样式啊?

按理说应该不是那个的问题
你的a有没有定义别的样式啊?

没有其它了,只定义了取消下横线及颜色

 a{blr:expression(this.onFocus=this.close());} /* 只支持IE,过多使用效率低 */a{blr:expression(this.onFocus=this.blur());} /* 只支持IE,过多使用效率低 */a:focus { -moz-outline-style: none; } /* IE不支持 */a:focus { outline: none; } /*很多网站都会加的属性*/

line-height的缘故了 你设置短点试试。

a:focus {outline:none}

这个是行高的问题。

a:focus {outline:none}

这个没效果

XML/HTML code
?



12345

a{blr:expression(this.onFocus=this.close());} /* 只支持IE,过多使用效率低 */ a{blr:expression(this.onFocus=this.blur());} /* 只支持IE,过多使用效率低 */ a:focus { -moz-outline-style: non……

这个把虚线也删除了

line-height的缘故了 你设置短点试试。

什么是短点?

a {vertical-align:middle;}用这个属性试一下

line-height问题

a {vertical-align:middle;}用这个属性试一下

thank you
你的方法解决了我的问题,分数全部给你

人气教程排行