How do you remove the blue border of an image map?

前端 未结 2 1104
南笙
南笙 2021-01-28 18:25

The landing page is a static background image and I created a clickable area with image map. The problem is that a blue border (see image below) shows up when you click on the a

相关标签:
2条回答
  • 2021-01-28 19:11

    That's looks like the focus state.

    You can avoid that defining

    *:focus { outline: none; }
    

    but on the other hand, the visible focus is important for people who don't use a mouse or touchpad, i.e. who only use the keyboard for moving around at a page (keyword ACCESSIBILITY), so you should really consider leaving it as is (maybe only change the outline color to fit better in your page)

    0 讨论(0)
  • 2021-01-28 19:16

    That looks like the object's outline.

    If you specify outline: none in the CSS for an object, it removes the blue glow that you see when an element is selected in the browser.

    0 讨论(0)
提交回复
热议问题