Home  >  Q&A  >  body text

javascript - Add an href to a tag and a blue border appears. Solution


After adding an href link to the a tag, a blue border appears on the pad. Using outline: none text-decoration: none; does not work. Please solve it

PHP中文网PHP中文网2715 days ago973

reply all(8)I'll reply

  • 为情所困

    为情所困2017-06-05 11:10:11

    Add outline: none

    to the focus and active pseudo-classes

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-06-05 11:10:11

    Can I view it without development tools when debugging? ? You can tell by looking at his style

    reply
    0
  • PHP中文网

    PHP中文网2017-06-05 11:10:11

    a:active,
    a:hover {
    outline: none;
    }

    reply
    0
  • 巴扎黑

    巴扎黑2017-06-05 11:10:11

    It is probably added by the browser. The solution is as mentioned by the brother above.

    reply
    0
  • 滿天的星座

    滿天的星座2017-06-05 11:10:11

    Is the style set after hover

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-06-05 11:10:11

    -webkit-tap-highlight-color:transparent

    reply
    0
  • PHP中文网

    PHP中文网2017-06-05 11:10:11

    Add a label, a{outline: none}

    reply
    0
  • 某草草

    某草草2017-06-05 11:10:11

    It may be the default style of the browser. You can set it for the a tag in the reset style

    reply
    0
  • Cancelreply