How to remove the “Dotted Border” on clicking?

前端 未结 6 1471
终归单人心
终归单人心 2020-12-11 03:52

As you can see

\"alt

I want to somehow remove the dotted lines after the button has been clicke

6条回答
  •  执念已碎
    2020-12-11 04:33

    If you want to keep the outline on active and on focus, but hide it on clicking a link, you can add in css:

    A.No-Outline {outline-style:none;}

    and use script:

    $('A').hover(function() {
        $(this).addClass('No-Outline');
    },function() {
        $(this).removeClass('No-Outline');
    });
    

    you must be hover befor clicking, so it does the job.

提交回复
热议问题