摘要: background-attachment 属性设置背景图像是否固定或者随着页面的其余部分滚动。手机一屏的高度是960~1152px手机端不支持 阅读全文
posted @ 2014-12-04 10:30 nc_blog 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 页面加载完后自动隐藏浏览器地址栏:$(document).ready(function() { setTimeout(scrollTo, 200, 0, 1);});Android: 对锚点支持有限,只能跳转一次ios : 对锚点支持和pc浏览器一致 替代方案: javascript: scro... 阅读全文
posted @ 2014-11-28 13:54 nc_blog 阅读(155) 评论(0) 推荐(0) 编辑
摘要: placeholder="请输入用户名(六位数字加英文字母)" 阅读全文
posted @ 2014-11-26 11:17 nc_blog 阅读(297) 评论(0) 推荐(0) 编辑
摘要: http://www.oschina.net/news/57107/30-css-selector-you-should-remeber大 概大家读知道`id`,`class`以及`descendant`选择器,并且整体都在使用它们,那么你正在错误拥有更大级别的灵活性的选择方式。这篇 文章里面提到的... 阅读全文
posted @ 2014-11-18 17:52 nc_blog 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 去掉chrome、FF(360 v6.3)input在得到焦点时出现黄色(360 v6.3为蓝色)边框的方法,只需要在input中增加样式outline:0px;即可,如下:input{outline:0px;} 阅读全文
posted @ 2014-11-18 17:17 nc_blog 阅读(518) 评论(0) 推荐(0) 编辑
摘要: window.history.go(-1); 阅读全文
posted @ 2014-11-14 10:19 nc_blog 阅读(726) 评论(0) 推荐(0) 编辑
摘要: var str = "aa 12 a 1 ";str = str.replace(/[ ]/g,""); //替换所有空格! ==================== 详细点就是 ================== var sname = document.getElemen... 阅读全文
posted @ 2014-11-12 10:27 nc_blog 阅读(1378) 评论(0) 推荐(0) 编辑
摘要: textarea resize:none; 阅读全文
posted @ 2014-10-29 10:47 nc_blog 阅读(152) 评论(0) 推荐(0) 编辑
摘要: http://jingyan.baidu.com/article/0320e2c1e2a8611b87507bc3.html?qq-pf-to=pcqq.c2c 阅读全文
posted @ 2014-10-21 15:49 nc_blog 阅读(116) 评论(0) 推荐(0) 编辑
摘要: or 阅读全文
posted @ 2014-10-17 09:15 nc_blog 阅读(128) 评论(0) 推荐(0) 编辑