【问题标题】:Centering Bootstrap Popover beneath button when main column is floated next to sidebar当主列浮动在侧边栏旁边时,在按钮下方居中 Bootstrap Popover
【发布时间】:2014-11-24 20:38:22
【问题描述】:

我正在使用Bootstrap Popover,并希望弹出框与按钮底部水平居中。该按钮位于主要内容 DIV 的右列上,因此它会将其推到左侧,而不是将其放在主列和侧边栏的顶部。

如何解决这个问题?

My JSFiddle.

HTML:

<a href="#" tabindex="0" class="btn btn-lg btn-danger bs-docs-popover" role="button" data-toggle="popover" data-placement="bottom" data-trigger="focus" title="" data-content="And here's some amazing content. It's very engaging. Right?">Dismissible popover</a>

JS:

$('.bs-docs-popover').popover();

【问题讨论】:

    标签: javascript jquery css twitter-bootstrap popover


    【解决方案1】:

    它对你有好处吗? jsfiddle

    我已经添加了这样的 css 类

    .popover.fade {
        width: 100%;
    }
    

    【讨论】:

      猜你喜欢
      • 2013-06-30
      • 1970-01-01
      • 2013-12-31
      • 1970-01-01
      • 2013-12-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-24
      相关资源
      最近更新 更多