Web Tooltip “universally accepted” linebreak character?

前端 未结 4 1858
面向向阳花
面向向阳花 2020-12-19 08:26

I use \\n to create a linebreak in web tooltip. This works in IE and in Chrome. But Firefox ignores it.

What will work universally as linebreak character in tooltip?

4条回答
  •  不思量自难忘°
    2020-12-19 09:13

    Update: This has been cleared up in HTML5 using the title attribute. Now Firefox 12 supports it. Try this:

    Test
    

    Bad news: Firefox does not line break tooltips. This is actually a non-standard html extension, ie a bug in MSIE that may cause problem with certain pages.

    See this bug on the firefox issue tracker.

提交回复
热议问题