点击时删除虚线边框 [英] Removing dotted borders on click

查看:100
本文介绍了点击时删除虚线边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用此CSS删除点击超链接时出现的虚线边框

I am using this CSS to remove dotted borders which appear when hyperlinks are clicked

a:active, a:focus, input {
    outline: 0;
    outline-style:none;
    outline-width:0;
}

这是工作正常,但不适用于有背景的输入按钮

This is working fine, but doesn't work on input buttons which have background images.

推荐答案

这不是我对你的设计决定提出质疑的地方,所以在这里。

It's not my place to question your design decisions, so here you go.

只要将其添加到任何链接即可删除虚线

Just add this to any link's you want to remove the dotted line

onfocus="if(this.blur)this.blur()"

这篇关于点击时删除虚线边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆