[英]jquery dialog not showing scrollbars
I have this definition for the jquery dialog plugin: 我对jquery对话框插件有以下定义:
$("#DonateForm").dialog({
modal: true,
autoOpen: false,
minWidth: 600,
maxWidth: 700,
minHeight: 250,
maxHeight: 350,
resizable: true
});
I have a complicated DIV form like: 我有一个复杂的DIV表格,例如:
<div id="DonateForm">
<div id="DonateFormInner">
.. Complex form ..
</div>
</div>
But for some reason, the plugin doesn't scroll... any idea why? 但是由于某种原因,该插件无法滚动...知道为什么吗?
You probably have to give your container "overflow: auto": 您可能必须给容器“溢出:自动”:
<div id='DonateForm' style='overflow: auto'>
</div>
Depending on the situation, it might be easier to work with the inner <div>
. 根据情况,使用内部<div>
可能会更容易。
The minXXX, maxXXX settings define the minimum and maximum width and height values that the dialog can be resized to. minXXX,maxXXX设置定义了对话框可以调整大小的最小和最大宽度和高度值。 You can define a starting width and height when creating the dialog and the scroll bar will appear when the dialog is initially rendered. 您可以在创建对话框时定义起始宽度和高度,并在最初呈现对话框时显示滚动条。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.