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

前端 未结 2 1137
南笙
南笙 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)

提交回复
热议问题