2011-03-10 74 views

回答

2

的JS需要一个portlet类,而HTML使用Widget类。

+0

非常感谢错误! – oshirowanen 2011-03-10 10:09:30

+0

不客气! – Athena 2011-03-10 10:20:03

0

删除$(document).load包装或chage到nowrap从左下拉。 http://jsfiddle.net/UxvaG/1/

 $(".column").sortable({ 
      connectWith: ".column" 
     }); 

     $(".portlet").addClass("ui-widget ui-widget-content ui-helper-clearfix ui-corner-all") 
      .find(".portlet-header") 
       .addClass("ui-widget-header ui-corner-all") 
       .prepend("<span class='ui-icon ui-icon-minusthick'></span>") 
       .end() 
      .find(".portlet-content"); 

     $(".portlet-header .ui-icon").click(function() { 
      $(this).toggleClass("ui-icon-minusthick").toggleClass("ui-icon-plusthick"); 
      $(this).parents(".portlet:first").find(".portlet-content").toggle(); 
     }); 

     $(".column").disableSelection(); 

如果您在此处选择的lib左上角选择onLoad,那么的jsfiddle将自动换行里面的代码$(document).load({})

0

ü必须缺少一些CSS,使用的ThemeRoller

下载ThemeRoller主题: 构建主题的最简单方法是使用ThemeRoller生成 并下载主题为 。这个应用程序将创建一个新的ui.theme.css文件和图像 目录包含所有必要的 背景图像和图标精灵 可以简单地将其放入您的 项目。这种做法将是 最容易创建和维护,但 限制定制中的ThemeRoller提供的选项

reference