首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

Jquery dialog 拖动 旋钮失效

2012-11-23 
Jquerydialog 拖动 按钮失效self.uiDialog.draggable({cancel: .ui-dialog-content, .ui-dialog-titlebar

Jquery dialog 拖动 按钮失效

self.uiDialog.draggable({cancel: '.ui-dialog-content, .ui-dialog-titlebar-close',handle: '.ui-dialog-titlebar',containment: 'document',start: function(event, ui) {if(window.navigator.userAgent.indexOf("MSIE")<1)  //2012-4-23 mod{heightBeforeDrag = options.height === "auto" ? "auto" : $(this).height();$(this).height($(this).height()).addClass("ui-dialog-dragging");}self._trigger('dragStart', event, filteredUi(ui));},drag: function(event, ui) {self._trigger('drag', event, filteredUi(ui));},stop: function(event, ui) {options.position = [ui.position.left - doc.scrollLeft(),ui.position.top - doc.scrollTop()];if(window.navigator.userAgent.indexOf("MSIE")<1)  //2012-4-23 mod{$(this).removeClass("ui-dialog-dragging").height(heightBeforeDrag);}self._trigger('dragStop', event, filteredUi(ui));$.ui.dialog.overlay.resize();}});



另附提高Jquery 性能的参考WebSite:http://www.gbin1.com/technology/jquery/20120222jqueryxingneng/index.html

热点排行
Bad Request.