Bootstrap tooltip causing buttons to jump

前端 未结 2 1160
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 19:45

When I hover over a button and the tooltip appears, the buttons jump. If I disable the tooltip, it does not jump. Additionally, the right button loses the rounded edges. How c

2条回答
  •  温柔的废话
    2021-01-30 20:39

    To avoid the jump, you need to set the container attribute. This is documented.

    When using tooltips and popovers with the Bootstrap input groups, you'll have to set the container option to avoid unwanted side effects.

    Try the following:

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

提交回复
热议问题