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

后端 未结 21 1486
情歌与酒
情歌与酒 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 14:04

    You should overwrite the properties using your own css. like so:

    div.tooltip-inner {
        text-align: center;
        -webkit-border-radius: 0px;
        -moz-border-radius: 0px;
        border-radius: 0px;
        margin-bottom: 6px;
        background-color: #505050;
        font-size: 14px;
    }
    

    the selector choose the div that the tooltip is held (tooltip is added in by javascript and it usually does not belong to any container.

提交回复
热议问题