jQuery UI手风琴中的手风琴

编程入门 行业动态 更新时间:2024-10-15 16:25:54
本文介绍了jQuery UI手风琴中的手风琴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否可以用jQuery UI将手风琴嵌入另一个手风琴中?

Is it possible to have an accordion embedded in another accordion with jQuery UI?

-Item One -Item Two -Item Three --Sub One --Sub Two --Sub Three -Item Four

第一至第四小节是另一个手风琴.

Where Sub One through Four is another accordion.

谢谢

推荐答案

只需为每个手风琴赋予不同的id名称,并在jquery函数中调用它们,就必须编辑css以获得所需的外观. /p>

Just give different id names for each accordion and call them in the jquery function an you would have to edit the css to get the desired look though.

$(function() { $( "#accordion,#accordion2" ).accordion(); });

演示

DEMO

更多推荐

jQuery UI手风琴中的手风琴

本文发布于:2023-11-25 00:47:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627627.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:手风琴   jQuery   UI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!