[removed] how can I tell if a is broken over 2 lines?

后端 未结 4 1418
攒了一身酷
攒了一身酷 2021-02-01 18:43

I display a bubble help for some short span elements. The bubbles are centered below that span and look great as long as the span isn\'t broken over two lines.

Looks goo

4条回答
  •  感情败类
    2021-02-01 19:10

    With or without a line break you can just calculate using .css() in jQuery where exactly on the screen is that span located and then position the tooltip accordingly. Or you can use a jQuery plugin to do all this for you.

提交回复
热议问题