Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚开始使用 jQuerymobile,我遇到了一个场景,我在菜单中放置了像图标一样的 div,单击 div 时,它应该以 100% 的方式扩展宽度,占据它所在的行,向下推动其他 div,然后再单击现在展开的 div 它应该最大化并占据全屏。还有一个条款可以最小化回到初始状态。
$(".btn-minimize").click(function(){ $(this).toggleClass('btn-plus'); $(".widget-content").slideToggle(); });
小提琴演示