jQuery中的保管箱登录弹出方法? [英] dropbox login popup method in jQuery?

查看:73
本文介绍了jQuery中的保管箱登录弹出方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道它可能是jQuery,但我只是不知道该怎么做.选择登录后,如何使登录输入看起来像这样?

I know it's probably jQuery, I just can't figure out how to do it. How do you get the login inputs to appear like that when you select login?

投递箱网站

有人可以给我一些他们描述该过程的演示代码吗?我能想到的就是将div设置为隐藏状态,而不是显示它,我错了吗?

Can someone give me possibly some demo code that they have describing the process? All i can think of is setting a div hidden and than showing it, am I wrong?

推荐答案

您是对的.这基本上是唯一发生的事情.

you are right. And this is basically the only thing that happens.

我会在悬停时(而不是在点击时)进行操作.它只是浪费的点击... 在这种情况下,您不需要任何jQuery即可做到.

I would do it on hover not on click. Its just a wasted click... and in this case you don't need any jQuery to do this.

只需隐藏登录表单并在悬停时显示它即可. 这是一个演示: http://jsfiddle.net/sXmAe/

Just hide the loginform and show it on hover. Here is a demo: http://jsfiddle.net/sXmAe/

如果您确实希望在点击时发生,请将所有:hover更改为:active

if you really want it to happen on click, change all :hover to :active

这篇关于jQuery中的保管箱登录弹出方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆