gpt4 book ai didi

jquery - Bootstrap 弹窗定位

转载 作者:行者123 更新时间:2023-11-28 02:30:59 25 4
gpt4 key购买 nike

有没有办法在点击按钮的“右下”而不是“右中”对齐 Bootstrap 弹出窗口?它应该是动态的。

enter image description here

您可以在这里查看标准代码http://jsfiddle.net/VUZhL/2915/

<a href="#" id="example" rel="popover" data-placement="right" data-content="Header" data-original-title="Text">pop</a>

提前致谢。

最佳答案

你需要重写 bootstrap popover css 来实现你想要的:

.popover {
margin-top: -20px;
}

.popover.right .arrow {
margin-top: 8px;
}

检查以下 fiddle :

http://jsfiddle.net/VUZhL/2916/

关于jquery - Bootstrap 弹窗定位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47706775/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com