How can I use a carriage return in a HTML tooltip?

前端 未结 27 1723
说谎
说谎 2020-11-22 11:59

I\'m currently adding verbose tooltips to our site, and I\'d like (without having to resort to a whizz-bang jQuery plugin, I know there are many!) to use carriage returns to

27条回答
  •  甜味超标
    2020-11-22 12:49

    hack but works - (tested on chrome and mobile)

    just add no break spaces   till it breaks - you might have to limit the tooltip size depending on the amount of content but for small text messages this works:

       etc
    

    Tried everything above and this is the only thing that worked for me -

提交回复
热议问题