Web Tooltip “universally accepted” linebreak character?

前端 未结 4 1861
面向向阳花
面向向阳花 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条回答
  •  猫巷女王i
    2020-12-19 09:27

    Firefox doesn't display multi-lines in tooltips.

    Use tooltip script if you really want to customize it as you expected. http://www.hongkiat.com/blog/tooltips-scripts-50-scripts-with-ajax-javascripts-css-tutorials/

提交回复
热议问题