码迷,mamicode.com
首页 >  
搜索关键字:scroll    ( 2744个结果
jQuery 事件方法大全-超全的总结
jquery经常使用的事件: /* on off hover blur change click dblclick focus keydown keyup keypress mousedown resize scroll select submit */ 元素事件列表说明: 注:不带參数的函数,其參 ...
分类:Web程序   时间:2016-04-19 11:34:31    阅读次数:253
iOS UITableView的cell重用标识
转自 http://www.2cto.com/kf/201308/238449.html UITableView继承自UIScrollview,是苹果为我们封装好的一个基于scroll的控件。上面主要是一个个的 UITableViewCell,可以让UITableViewCell响应一些点击事件,也 ...
分类:移动开发   时间:2016-04-19 00:21:43    阅读次数:191
JQuery判断滚动条是否到达顶部及是否到达底部
$(document).ready(function() { $(window).scroll(function() { if ($(document).scrollTop()<=0){ alert("滚动条已经到达顶部"); } if ($(document).scrollTop() >= $(d ...
分类:Web程序   时间:2016-04-18 13:27:34    阅读次数:202
UITableView的cell重用标识
转自 http://www.2cto.com/kf/201308/238449.html UITableView继承自UIScrollview,是苹果为我们封装好的一个基于scroll的控件。上面主要是一个个的 UITableViewCell,可以让UITableViewCell响应一些点击事件,也 ...
分类:其他好文   时间:2016-04-17 17:46:23    阅读次数:149
勤能补挫-简单But易错的JS&CSS问题总结
错误频率较高的JS&CSS问题 勤能补拙,不管是哪门子技术,在实践中多多总结,开发效率慢慢就会提升。本篇介绍几个经常出错的JS&CSS问题,包括事件冒泡、(使用offset、scroll、clientHeight定位元素)、模仿JD写个右栏菜单、元素水平和垂直居中、inline元素遇见padding ...
分类:Web程序   时间:2016-04-15 02:12:04    阅读次数:246
网站导航固定头部
页面引入 jQuery.js 1、css .nav_fixed{position: fixed;top: 0px;} 2、网页加上一段js 《script》 var nt = !1; $(window).bind("scroll", function() { var st = $(document) ...
分类:Web程序   时间:2016-04-14 23:54:19    阅读次数:214
How to scroll the window using JQuery $.scrollTo() function
http://stackoverflow.com/questions/832860/ ...
分类:Windows程序   时间:2016-04-13 18:47:05    阅读次数:235
H5不能少的功能-滑动分页
$(window).scroll(function() { var mayLoadContent = $(window).scrollTop() >= $(document).height() - $(window).height(); var docHeight = $(document).hei ...
分类:其他好文   时间:2016-04-09 15:11:10    阅读次数:128
保持listview当前位置
保持listview滑动的位置,一般用在增加listview子item中布局的评论或者退出当前活动,再次进入继续阅读时。 利用ListView.getFirstVisiblePosition()来获取当前可见的第一个Item的position,在滚动监听中设置 其中存储position和scroll ...
分类:其他好文   时间:2016-04-09 13:56:16    阅读次数:162
js 置顶操作
//置顶 document.getElementById("pro-view-8").onclick = function(){document.body.scrollIntoView();} window.onscroll = function(){ if(document.body.scroll ...
分类:Web程序   时间:2016-04-09 13:38:06    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!