$(function(){$(window).scroll(function () { if ($(window).scrollTop() > 253) { $(".pagetab").css("position","fixed"); $(".pagetab").css("top",...
分类:
其他好文 时间:
2015-07-07 11:02:56
阅读次数:
82
js-width/height/top/left/offset/scroll/client
分类:
Web程序 时间:
2015-07-06 23:16:51
阅读次数:
159
问题描述:
因为设计需要,希望让ios7下的状态栏图标强制显示为白色的效果。
解决方案:
在info.plist里边增加主键View controller-based status bar appearance,设置value为YES。
在viewcontroller的实现中增加函数:
- (UIStatusBarStyle)preferredStatusBarStyle
{
/...
分类:
其他好文 时间:
2015-07-05 15:09:47
阅读次数:
108
本文由Snow(博客)翻译自APPCODA。
原文: A Beginner’s Guide to UIScrollView
作者: joyce echessa
用代码创建Scroll View
缩放
点击缩放...
分类:
其他好文 时间:
2015-07-05 09:44:53
阅读次数:
134
Insert title here
/**
* 判断滚动条是否到最底端的方法
* @param Element obj
*/
function isScro...
分类:
Web程序 时间:
2015-07-05 09:35:41
阅读次数:
139
NSArray是Foundation框架的一种集合类创建一个新的NSArrayNSArray *array = [NSArray arrayWithObjects:@"foo",@"bar",@"baz",nil];NSArray类是不可变的,创建以后就不能改变其内容。顺次访问数组中的元素: 1 N...
分类:
编程语言 时间:
2015-07-03 01:41:56
阅读次数:
224
2014-07-07更新:苹果在iOS 8中全面使用instancetype代替idSteven Fisher:只要一个类返回自身的实例,用instancetype就有好处。@interface Foo:NSObject - (id)initWithBar:(NSInteger)bar; // in...
分类:
移动开发 时间:
2015-07-02 22:25:41
阅读次数:
211
angular js 自带的$location方法十分强大,通过使用$location方法,我们可以获取到服务器的端口、杂乱连接中的path()部分(/所包含的部分);
例:
// given url http://example.com/#/some/path?foo=bar&baz=xoxo
var path = $location.path();
// => "/some/path"...
分类:
Web程序 时间:
2015-07-02 17:42:13
阅读次数:
181
Codyhouse 收集了一组页面滚动效果,就是目前大家很常见的用户在浏览网页的时候。一些效果虽然极端,但如果你的目标是创建一个身临其境的用户体验,他们是非常有用的。所有的动画都使用 Velocity.js 创建。
分类:
其他好文 时间:
2015-07-02 14:00:55
阅读次数:
106
在这里,精灵、动画精灵、button天才、经常使用的文本的使用一个、相关精灵1.加入精灵//创建精灵Spritebar_up=newSprite(400,0,RegionRes.getRegion(Res.BAR_UP), getVertexBufferObjectManager());//将精灵....
分类:
其他好文 时间:
2015-07-02 13:55:54
阅读次数:
105