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

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

    To fix the width problem, use the following code instead.

    $('input[rel="txtTooltip"]').tooltip({
        container: 'body'
    });
    

    example: http://eureka.ykyuen.info/2014/10/08/bootstrap-3-tooltip-width/

提交回复
热议问题