dongshang3309 2013-12-20 20:59
浏览 31
已采纳

如何创建像jQuery Accordion这样的东西?

We need to create a FAQ page that has a requirement that clicking the title will open up the answer.

jQuery Accordion popped immediately to mind, and I have spent the last couple of days trying to get that to work with our code.

In short, it can't (at least, not easily) because migrating our version of jquery up from 1.7.1 causes a number of our other controls to break.

All of our controls load from a Template, like the one below:

<?php include(SITE_ROOT.'lib/templates/masterPage.php'); ?>

I could modify masterPage.php to use the latest jquery, but then we would need to stop all of our software department to spend the next few months regression testing. The company is not ready for that.

I have gotten Accordion to work with 1.8.3 and up (see fiddle, but we are locked into 1.7.1 for now.

Is there something else out there that I can use to create this effect besides the latest jQuery?

Is there anything in HTML5? I can use that.

  • 写回答

3条回答 默认 最新

  • dqrqp8492 2013-12-20 21:05
    关注

    You can create an accordion with HTML 5 and CSS3 see http://www.expression-web-tutorial.com/accordion-menu-tutorial.html

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题