简体   繁体   English

创建一个“下拉” div

[英]Create a “pull down” div

I'm looking for a way to make a "pull down" div with Javascript/CSS. 我正在寻找一种使用Javascript / CSS进行“下拉” div的方法。 Basically, I want my users to drag an HTML element and have another Div use something like jQuery's "slideDown" effect, but where it is directly linked with where they have pulled the other Div. 基本上,我希望我的用户拖动一个HTML元素,让另一个Div使用类似jQuery的“ slideDown”效果,但该位置直接与他们拖动另一个Div的位置联系在一起。 Does that make any sense? 这有任何意义吗?

So if they pull the "Pull Me" Div only halfway down the screen the 2nd Div is only half visible. 因此,如果他们仅将“ Pull Me” Div拉到屏幕的一半,则第二Div只能看到一半。 Essentially, pulling down the shades on a window....I want that effect and I can't seem to find it anywhere. 从本质上讲,拉下窗户上的阴影...。我想要那种效果,但似乎在任何地方都找不到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM