Hello I use Jquery UI dialog box to put in some long text.
Once I open the dialog box, it shows like this in default (It should show the upper part of the dialog box):
您好我使用Jquery UI对话框放入一些长文本。打开对话框后,它默认显示如下(它应显示对话框的上半部分):
I try to change the $('.ui-dialog').css("top", "0px");
to push the scroll bar to the top, but it is not working. Is there anyway I can fix this?
Thanks!
我尝试更改$('。ui-dialog')。css(“top”,“0px”);将滚动条推到顶部,但它不起作用。无论如何我能解决这个问题吗?谢谢!
1 个解决方案
#1
4
Try this
尝试这个
$('.ui-dialog').scrollTop(0);
#1
4
Try this
尝试这个
$('.ui-dialog').scrollTop(0);