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

后端 未结 21 1500
情歌与酒
情歌与酒 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:38

    Just override bootstrap.css

    The default value in BS2 is max-width:200px; So you can increase it with whatever fits your needs.

    .tooltip-inner {
        max-width: 350px;
        /* If max-width does not work, try using width instead */
        width: 350px; 
    }
    

提交回复
热议问题