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

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

    Define the max-width with "important!" and use data-container="body"

    CSS file

    .tooltip-inner {
        max-width: 500px !important;
    }
    

    HTML tag

    
    

    JS script

    $('.tooltiplink').tooltip();
    

提交回复
热议问题