Is it possible to hide the title from a link with CSS?

后端 未结 5 969
孤独总比滥情好
孤独总比滥情好 2020-12-06 04:17

I have an anchor element with a title attribute. I want to hide the popup that appears when hovering over it in the browser window. In my case, it is not possible to do some

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 04:48

    Using the following CSS property will ensure that the title attribute text does not appear upon hover:

    pointer-events: none;
    

    Keep in mind that JS is a better solution since this CSS property will ensure that the element is never the target of any mouse events.

提交回复
热议问题