Bootstrap popover width for popover-inner

前端 未结 10 1466
攒了一身酷
攒了一身酷 2020-12-29 18:48

I would like the have a Bootstrap Popover be wider. I read that this should work:

.popover-inner a {
   width: 600px;
}

But, the browser c

10条回答
  •  礼貌的吻别
    2020-12-29 19:20

    There's a pull request on bootstrap to make this easier, but you can modify it using this technique of setting the template option for the popover:

    $('#yourPopover').popover({
      template: '

    ' })

    Then you can set your popover special-class css however you like (widths and more!)

提交回复
热议问题