Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用了 jQuery mobile 并在最左边的按钮上添加了弹出窗口,但弹出窗口没有居中,因为它会向左填充更多。
在 android 模式下,弹出对话框不在纵向模式中居中我已使用此链接中的代码从中生成弹出对话框按钮
目前尚不清楚您遇到了什么问题,但是要将对话框置于窗口的中心,只需data-position-to="window"像这样使用:
data-position-to="window"
<a href="#positionWindow" data-rel="popup" data-position-to="window"> <div data-role="popup" id="positionWindow"> <p>I am positioned to the window.</p> </div>