How to add line feed to header style tooltip in firefox?

Firefox does not seem to support linear feeds in the title attribute. I tried to \r, \r\n, \n, 
, 
and still found nothing.

Can anyone crack this?

+3
source share
2 answers

There is nothing spec about exactly how browsers should display the value in title attributes.

Just saying:

Title attribute values can be displayed by user agents in various ways. For example, visual browsers often display the title as a "hint"

(Emphasis mine)

, , " " .

+2

Firefox . , Chrome, return.

<a href="..." title="My

long

title">My link</a>

JQuery Tooltip Plugin. html .

0

Source: https://habr.com/ru/post/1782932/


All Articles