简体   繁体   English

jQuery UI对话框从页面底部移至div

[英]jquery ui-dialog move from bottom of page to a div

Iam using ui-dialog ,by default it's a fixed and i get the html code at the end of page before directly , how can i force it to append in a 我使用ui-dialog,默认情况下是固定的,我直接在页面末尾获取html代码,如何强制将其附加到

 <div class="container"></div>

without to be fixed in page 无需在页面中固定

看截图

Give your .container an id, then you can use: 给您的.container一个ID,然后您可以使用:

appendTo: "#yourContainingElement"

The default is to append it to the body. 默认是将其附加到主体。

See the docs: http://api.jqueryui.com/dialog/#options 参见文档: http : //api.jqueryui.com/dialog/#options

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM