摘要: document.documentElement.clientHeight 高度document.documentElement.clientWidth 宽度兼容ie6+ 阅读全文
posted @ 2015-01-21 10:15 nc_blog 阅读(1309) 评论(0) 推荐(0) 编辑
摘要: blog.sina.com.cn/s/blog_76a8d80b01018jnf.htmlJquery hover 事件中在 IE 中存在的 BUGDecember 15th 2011评论(11) Jquery 也有 BUG ?是的!Jquery hover 事件在 IE 中就存在 Bug !因为帮... 阅读全文
posted @ 2015-01-16 10:52 nc_blog 阅读(633) 评论(0) 推荐(0) 编辑
摘要: http://www.5ixuexiwang.com/html/biancheng/js/2014/0617/2035.html 阅读全文
posted @ 2015-01-14 17:51 nc_blog 阅读(99) 评论(0) 推荐(0) 编辑
摘要: (1)在link中使用@media:(2)在样式表中内嵌@media:@media screen and (max-width: 600px) {选择器{属性:属性值;}}//max-width: 600px指屏幕宽度最大为600px; 阅读全文
posted @ 2015-01-13 10:22 nc_blog 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-01-13 09:37 nc_blog 阅读(599) 评论(0) 推荐(0) 编辑
摘要: //禁止按回车提交$(document).ready(function(){$("input[@type='text']").each(function(){$(this).keypress(function(e){varkey=window.event?e.keyCode:e.which;if(k... 阅读全文
posted @ 2015-01-12 13:05 nc_blog 阅读(246) 评论(0) 推荐(0) 编辑
摘要: function refresh1() { window.location.reload(true); } 阅读全文
posted @ 2015-01-08 10:04 nc_blog 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 在html的head头内如下写法,节选自http://www.xingzai.org/html-note/meta-tag-usage-order.html:其中最后一行是永远以最新的IE版本模式来显示网页的。另外加上Emulate模式Emulate模式后则更重视(细心的人会注意到,用IE9去访问带... 阅读全文
posted @ 2014-12-29 14:17 nc_blog 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 判断字符串是否全部为数字if(/^\d+$/.test(str)) { 全为数字,执行... }当然你也可以用isNaN来判断if(isNaN(str)){ str是个数字,执行...} 阅读全文
posted @ 2014-12-26 11:17 nc_blog 阅读(204) 评论(0) 推荐(0) 编辑
摘要: http://www.iconpng.com/ 阅读全文
posted @ 2014-12-11 10:29 nc_blog 阅读(95) 评论(0) 推荐(0) 编辑