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

后端 未结 4 1415
攒了一身酷
攒了一身酷 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:09

    I think the nicer way to do this would be with white-space: nowrap in CSS:

    CSS:

    span.bubble {
        white-space: nowrap;
    }
    

    HTML:

    tell irregular: told, told
    

提交回复
热议问题