Tag: autosize

在Internet Explorer中自动调整jQuery UI对话框的大小

如何在Internet Explorer中自动调整jQuery UI对话框? 此代码在Firefox中正常,但在Internet Explorer中则不行。 $(‘#dialog2’).dialog({ autoResize: true, show: “clip”, hide: “clip”, height: ‘auto’, width: ‘auto’, autoOpen: false, modal: true, position: ‘center’, draggable: true, open: function (type, data) { $(this).parent().appendTo(“form”); }, buttons: { “close”: function () { $(this).dialog(“close”); document.getElementById(“”).click(); } } }); 我的HTML元素是DIV。

jQuery Autosize插件动态添加textarea元素

嗨:)我正在使用jQuery Autosize插件动态调整我的一些textarea元素。 一切都很好,但问题是当我动态地向DOM添加一些textarea元素时,自动resize的东西不再起作用。 我像这样初始化插件: $(document).ready(function () { $(‘textarea’).autosize(); }); 我尝试为动态添加的textareas启用插件,例如: myDynamicallyAddedTextarea.autosize(); 不幸的是,没有发生任 任何人都可以帮我吗?