海友我有一个关于Jquery的问题向上,向下,滑动Toogles [英] Hai Friends I Have A Question On Jquery Slide Up,Down,Slide Toogles

查看:84
本文介绍了海友我有一个关于Jquery的问题向上,向下,滑动Toogles的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如

i有一个网格视图,我的网页上有一个按钮

我的问题是



当我点击按钮时,网格视图将慢慢向下滑动并再次点击按钮,网格必须向上滑动







如何为此编写代码





thankx

解决方案

这是示例,而不是div中的文本,您可以将gridview或按钮放在您想要的位置。 


< !DOCTYPE html >
< html >
< head >
< script src = http://ajax.googleapis.com/ajax/libs/jquery/1.11.2 /jquery.min.js\"> < / script >
< 脚本 >


(document).ready(function(){


( #翻转)。单击(函数(){

for example
i have a grid view,one button on my web page
and my question is

when ever i click on button the grid view will slowly slide down and again i click on button the grid must be in slide up



how to write code for this


thankx

解决方案

Hi, This is the example one and instead of text in div you can place you gridview or button what you want that's it.


<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>


(document).ready(function(){


("#flip").click(function(){


这篇关于海友我有一个关于Jquery的问题向上,向下,滑动Toogles的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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