摘要:
本人比较懒惰,截取几张图片参考 阅读全文
摘要:
浏览器的支持情况:平台浏览器history API支持情况IOS4.2-4.3*,5.0+Android2.2,2.3,4.04+Chrome for AndroidAll versionsInternet Explorer10+(windows phone8) 1 var useHash = f... 阅读全文
摘要:
//"webkit":safari或chrome//"opera":Opera//"mozilla":Firefox或者其他gecko内核的浏览其//"msie":IE var browser=(function(){ var s=navigator.userAgent.toLowerCase()... 阅读全文
摘要:
function urlArgs(){ var args={}; var query=location.search.substring(1); var pairs=query.split('&'); for(var i=0;i<pairs.length;i++){ var pos=p... 阅读全文
摘要:
执行脚本/*@cc_on@if(@_jscript)console.log('In IE');@else*/console.log('other explorer');/*@end@*/ 查看console输出: 阅读全文
摘要:
http://w3c.github.io/deviceorientation/spec-source-orientation.html 阅读全文
摘要:
一、避免文字字体大小重置html{ -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; text-size-adjust:100%;}二、视口大小对于一些老的浏览器需要使用如下代码:对于微软的PocketPC,需要使用一个特别的属... 阅读全文
摘要:
HTML5 Doctor:http://html5doctor.com/Dive Into HTML5:http://diveintohtml5.comHTML5 Rocks:http://www.html5rocks.com 阅读全文
摘要:
1 (function () { 2 3 var SomgLib= { 4 5 //--------------------------------------------------------------------------- 6 7 VERSION:... 阅读全文