想了解 Mootools 1.4.1 的常见问题解答吗?
这是一段使用 Mootools 1.2 创建常见问题解答的酷效果的代码,我无法让它与 mootools 1.4.1 一起使用。 (即使兼容)
http://davidwalsh.name/flashy-faqs-mootools-sliders
有人有什么想法吗?
这里有一个jsFiddle: http://jsfiddle.net/nicekiwi/VpT6D/3/ 但 jsFiddle 似乎有“问题”atm,所以我不确定这会有多大帮助。
代码看起来很简单,但问题的答案却让我困惑。基本上它可以工作,但是当单击问题时,答案会打开但被隐藏,并且答案 div 会扩展到与其包含的答案不成比例的大小,例如 1500px 和我链接的该网站上的演示中不存在的其他奇怪的 CSS 异常。
This is a peice of code for creating a cool effect of FAQs using Mootools 1.2, I can't get it working with mootools 1.4.1. (even with compatibility on)
http://davidwalsh.name/flashy-faqs-mootools-sliders
Anyone have any ideas?
There is a jsFiddle of it here: http://jsfiddle.net/nicekiwi/VpT6D/3/ but jsFiddle appears to be having 'issues' atm, so im not sure how much help that will be.
The code seems to simple yet the problem.answer eludes me. Basicly it works, but when the question is clicked the answer opens but is hidden and the answer div expands to a disproportionate size to the answer it contains, eg 1500px and other weird CSS annomilies not present in the demo on that site I've linked.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个可能的解决方案: http://jsfiddle.net/xnV2N/
here a possible solution : http://jsfiddle.net/xnV2N/