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.
我想在点击时展开框。由于某种原因,代码不起作用。
http://jsfiddle.net/9UJ7f/1/
PS:我也希望展开动画,你认为最好的方法是什么?也许检查“扩展”然后做一个 .animate ?
谢谢
在 JSFiddle 的左侧,您选择了 MooTools 作为您的库。
如果你打开你的 javascript 控制台,你会注意到一条错误消息“jQuery 未定义”。
我假设您希望标题保留并且下面的内容展开/折叠。我想你可能想要一种不同的方法。jQuery 内置了 hide() 和 show()。如果包含“快”或“慢”作为参数,它将添加动画。