【问题标题】:Bootstrap popover changing position with resolution引导弹出窗口随分辨率改变位置
【发布时间】:2015-11-10 15:47:45
【问题描述】:

我有如下引导弹出窗口

<div style="float:left; width:30%"></div>
<div class="popover results" style="z-index:1060; float:left; width:70%">
     <div class="arrow"></div>
        <div class="popover-inner">
        <h3 class="popover-title"></h3>
        <div class="popover-content">
        <p></p>
    </div></div>
</div>

我看到随着屏幕分辨率的变化,它与我拥有的输入元素的相对位置发生了变化。无论分辨率如何,我都想保持弹出框和输入元素的相对位置相同。有什么办法吗?

【问题讨论】:

  • 请张贴你的 jsfiddle。
  • 我建议制作相对于父级的弹出框,但坦率地说,当您没有足够的代码可以使用时,这很难做到。

标签: javascript css html twitter-bootstrap bootstrap-popover


【解决方案1】:

这是因为我在上面的代码中使用了以下代码

<div style="float:left; width:30%"></div>

我删除了它,它现在可以正确自动调整

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-04
    • 1970-01-01
    • 2016-09-09
    相关资源
    最近更新 更多