使用 jQuery 扩展 Div
I like to do something terribly simple
Had a div that show only a little bit of image
click on div, expand to the image height
reclick on it, contract to to original height
Now, my test is not concluant ! so many problems !, is there a simpler method around ?
mostly as this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
做到这一点的最好方法是有一个手柄,它可以切换面板:
然后是这样的:
这不仅简单,而且是可预测的,并且不会让用户对行为感到困惑。
The best way to do this is to have a handle, which toggles a panel:
And then something like:
Not only is this simple, but it's predictable, and won't leave the user confused about the behavior.