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

前端 未结 27 1693
说谎
说谎 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:29

    As for whom didn't work you have to style the element on which lines are visible in as : white-space: pre-line;

    Referenced from this Answer : https://stackoverflow.com/a/17172412/1460591

提交回复
热议问题