MUG*_*G4N 68
我解决了这个问题:
.dialog({
title: $(this).attr("data-dialog-title"),
closeOnEscape: true,
close: function () { $(this).remove() },
draggable: true,
position: 'center',
width: 500,
height: 'auto',
modal: true,
open: function (event, ui) {
$('#myDialogId').css('overflow', 'hidden'); //this line does the actual hiding
}
});
Run Code Online (Sandbox Code Playgroud)
Pau*_*ite 11
你的意思是jQuery UI对话框小部件?
您可以在创建选项时指定其高度,例如
$('.selector').dialog({ height: 350 });
Run Code Online (Sandbox Code Playgroud)
让它高于你投入的内容,我怀疑你是金色的.
小智 6
我不确切地知道'jquery对话框'的意思,但禁用滚动条的标准方法是将div的overflow属性设置为'hidden'
把它放在你的css文件中:
div.class_name {
overflow: hidden;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
88440 次 |
| 最近记录: |