上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: 1.Google Analytics分析工具的使用:注册后页面中加入Google Analytics的代码,可以分析出有哪些设备在访问网站或者哪些页面访问量比较大、2.Modernizr 可以检测浏览器对html5元素的支持性。可以判断是否支持localstorage等等3.html5元素在旧版本的... 阅读全文
posted @ 2014-09-05 18:21 Western Journey 阅读(2492) 评论(0) 推荐(0) 编辑
摘要: chrome :IE:var matchVal = encodeURIComponent($('.inp_match').val()); // 此时ie下就可以正常搜索到了/order/edit.html?act=select&sname=%E5%9B%9B如果前端和后端页面编码不一样的时候可以jQ... 阅读全文
posted @ 2014-09-02 11:48 Western Journey 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-08-26 16:46 Western Journey 阅读(765) 评论(0) 推荐(0) 编辑
摘要: var obj = document.getElementById('setbg');var smooth = new ImageSmooth(obj);//smooth.fuzzy();/*背景模糊*/ function ImageSmooth(obj){ var elem,oldClass... 阅读全文
posted @ 2014-08-19 11:39 Western Journey 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 一、设备像素比(window.devicePixelRatio) 设备像素比= 设备上物理像素/设备独立像素(dips 布局视区的宽度) 非视网膜屏幕的iphone上,屏幕物理像素320像素,独立像素(视区宽度)也是320像素,因此,window.devicePixelRatio等于1.(chrom... 阅读全文
posted @ 2014-08-18 11:53 Western Journey 阅读(479) 评论(0) 推荐(0) 编辑
摘要: JS Bin //每个浏览器会报不同的错误(由错误的标签嵌套引起,需要把tbody放在table里)+| IE 6,7,8 | 意外地调用了方法或属性访问。 ... 阅读全文
posted @ 2014-08-15 11:31 Western Journey 阅读(902) 评论(0) 推荐(0) 编辑
摘要: JS Bin //我们可以指定transition适用的属性,比如只适用于heighttransition:1s height;//源文地址:http://www.ruanyifeng.com/blog/2014/02/css_transition_and_animation.html 阅读全文
posted @ 2014-08-14 15:38 Western Journey 阅读(153) 评论(0) 推荐(0) 编辑
摘要: test1.js$(function(){})var flag=1;getOrder();//执行后flag会变成1 并输出1111function getOrder(){ flag=0; document.write('1111');}test2.js$(function(){})a... 阅读全文
posted @ 2014-08-08 15:20 Western Journey 阅读(122) 评论(0) 推荐(0) 编辑
摘要: .service{ /*position:relative;*/ height:96% !important;overflow: hidden;}.pright{ height:40px; text-align:right; margin-top:30px; padding-right:50px; ... 阅读全文
posted @ 2014-08-07 17:24 Western Journey 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Document 首页热门应用游戏短信 //浮动元素不占据空间 阅读全文
posted @ 2014-08-06 17:27 Western Journey 阅读(215) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页