How do you change the width and height of Twitter Bootstrap's tooltips?

后端 未结 21 1454
情歌与酒
情歌与酒 2020-12-12 13:26

I created a tooltip using Twitter Bootstrap.

The tooltip is displaying with three lines. However, I would like to display the tooltip with only one line.

How

21条回答
  •  眼角桃花
    2020-12-12 13:44

    I had the same problem, however all popular answers - to change .tooltip-inner{width} for my task failed to do the job right. As for other (i.e. shorter) tooltips fixed width was too big. I was lazy to write separate html templates/classes for zilions of tooltips, so I just replaced all spaces between words with   in each text line.

提交回复
热议问题