function goTop() {$('html, body').animate({scrollTop:0}, 'slow'); }function goDiv(div) {var a = $("#"+div).offset().top;$("html,body").animate({scroll...
分类:
其他好文 时间:
2014-10-30 14:55:15
阅读次数:
218
1.可滚动结果集: 1 conn = JdbcUtils.getConnection(); 2 st = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, 3 ResultSet...
分类:
数据库 时间:
2014-10-29 23:54:26
阅读次数:
337
#define NSLogRect(rect) NSLog(@"%s x:%.4f, y:%.4f, w:%.4f, h:%.4f", #rect, rect.origin.x, rect.origin.y, rect.size.width, rect.size.height)
#define NSLogSize(size) NSLog(@"%s w:%.4f, h:%.4f", #size, s...
分类:
其他好文 时间:
2014-10-29 17:09:34
阅读次数:
171
$(function() { // 设置每次滚动长度,单位 px var scroll_width = 100; var scroll_events = "mousewheel DOMMouseScroll MozMousePixelScroll"; $("body").on...
分类:
Web程序 时间:
2014-10-29 10:24:07
阅读次数:
789
NGUI版本: 3.5.6b1 新建立一个Scene场景2 拖入一个Contorl-Backgound到Scene中,微调,作为背景使用3 鼠标在场景中右键点击Create-->Scroll View (调整的时候,注意不要调整的是UIPanel)4 创建一个Sprite,或者快捷键Alt+Shif...
分类:
其他好文 时间:
2014-10-28 19:46:42
阅读次数:
368
1 现象:下图A处Scroll View的中心点和真正上Scroll View的中心点有偏差 原因:创建Scroll View 的时候,调整Scroll View的大小的时候,习惯性的点击边框进行了微调,实际上调整的是UIPanel 更正: 在图B处,修改Center的X,Y值分别为0,0
分类:
其他好文 时间:
2014-10-28 17:43:26
阅读次数:
201
float: left;margin-left: 20px;position:absolute;--屏幕缩放,底部会有滚动条white-space: nowrap;--不换行width: 800px;overflow-x: scroll;--内容超出div边距,x轴显示div滚动条height: 7...
分类:
其他好文 时间:
2014-10-28 13:46:05
阅读次数:
501
原因:在Xcode6前,创建的文件系统会自动为用户导入Foundation.h和UIKit.h文件,但是最新的Xcode6只为用户导入了Foundation.h文件,缺少一个。
所以,解决方案是:自己在头文件部分导入即可。...
分类:
移动开发 时间:
2014-10-28 09:24:28
阅读次数:
223
//创建UIScrollView UIScrollView*scroll = [[UIScrollViewalloc]init]; //值UIScrollView的可视范围 scroll.frame=CGRectMake(0,0,375,667); scroll.backgroundColor= ....
分类:
其他好文 时间:
2014-10-28 00:27:03
阅读次数:
169
1,Overflow内容溢出时的设置
overflow 水平及垂直方向内容溢出时的设置
overflow-x 水平方向内容溢出时的设置
overflow-y 垂直方向内容溢出时的设置
以上三个属性设置的值为visible、scroll、hidden、auto
visible 默认值。使用该值时,无论设置的"width"和"height"
的值是多...
分类:
Web程序 时间:
2014-10-27 17:47:32
阅读次数:
330