{"id":64,"date":"2016-05-26T21:40:53","date_gmt":"2016-05-26T13:40:53","guid":{"rendered":"https:\/\/blog.lcsoul.cn\/?p=64"},"modified":"2016-05-26T21:40:53","modified_gmt":"2016-05-26T13:40:53","slug":"%e7%a7%bb%e5%8a%a8%e7%ab%af%e5%b8%b8%e7%94%a8%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/blog.lcsoul.top\/index.php\/2016\/05\/26\/%e7%a7%bb%e5%8a%a8%e7%ab%af%e5%b8%b8%e7%94%a8%e4%bb%a3%e7%a0%81\/","title":{"rendered":"\u79fb\u52a8\u7aef\u5e38\u7528\u4ee3\u7801"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h2><span style=\"font-family: 'arial black', sans-serif;\"><strong>meta<\/strong><\/span><\/h2>\n<h3>H5\u9875\u9762\u7a97\u53e3\u81ea\u52a8\u8c03\u6574\u5230\u8bbe\u5907\u5bbd\u5ea6\uff0c\u5e76\u7981\u6b62\u7528\u6237\u7f29\u653e\u9875\u9762<\/h3>\n<pre class=\"prettyprint linenums\">\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no\" \/>\n<\/pre>\n<h3>\u5ffd\u7565\u5c06\u9875\u9762\u4e2d\u7684\u6570\u5b57\u8bc6\u522b\u4e3a\u7535\u8bdd\u53f7\u7801<\/h3>\n<pre class=\"prettyprint linenums\">\n<meta name=\"format-detection\" content=\"telephone=no\" \/>\n<\/pre>\n<p><!--more--><\/p>\n<h3>\u5ffd\u7565Android\u5e73\u53f0\u4e2d\u5bf9\u90ae\u7bb1\u5730\u5740\u7684\u8bc6\u522b<\/h3>\n<pre class=\"prettyprint linenums\">\n<meta name=\"format-detection\" content=\"email=no\" \/>\n<\/pre>\n<h3>\u5f53\u7f51\u7ad9\u6dfb\u52a0\u5230\u4e3b\u5c4f\u5e55\u5feb\u901f\u542f\u52a8\u65b9\u5f0f\uff0c\u53ef\u9690\u85cf\u5730\u5740\u680f\uff0c\u4ec5\u9488\u5bf9ios\u7684safari<\/h3>\n<pre class=\"prettyprint linenums\">\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" \/>\n<!-- ios7.0\u7248\u672c\u4ee5\u540e\uff0csafari\u4e0a\u5df2\u770b\u4e0d\u5230\u6548\u679c -->\n<\/pre>\n<h3>\u5c06\u7f51\u7ad9\u6dfb\u52a0\u5230\u4e3b\u5c4f\u5e55\u5feb\u901f\u542f\u52a8\u65b9\u5f0f\uff0c\u4ec5\u9488\u5bf9ios\u7684safari\u9876\u7aef\u72b6\u6001\u6761\u7684\u6837\u5f0f<\/h3>\n<pre class=\"prettyprint linenums\">\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\" \/>\n<!-- \u53ef\u9009default\u3001black\u3001black-translucent -->\n<\/pre>\n<p>&nbsp;&nbsp;<\/p>\n<h2><span style=\"font-family: 'arial black', sans-serif;\"><strong>viewport\u6a21\u677f<\/strong><\/span><\/h2>\n<h3>\u901a\u7528<\/h3>\n<pre class=\"prettyprint linenums\">\n<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no\" name=\"viewport\">\n<meta content=\"yes\" name=\"apple-mobile-web-app-capable\">\n<meta content=\"black\" name=\"apple-mobile-web-app-status-bar-style\">\n<meta content=\"telephone=no\" name=\"format-detection\">\n<meta content=\"email=no\" name=\"format-detection\">\n<title>\u6807\u9898<\/title>\n<link rel=\"stylesheet\" href=\"\/index.css\">\n<\/head>\n<body>\n<\/body>\n<\/html>\n<\/pre>\n<h3>target-densitydpi=device-dpi\uff0candroid 2.3.5\u4ee5\u4e0b\u7248\u672c\u4e0d\u652f\u6301<\/h3>\n<pre class=\"prettyprint linenums\">\n<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=750, user-scalable=no, target-densitydpi=device-dpi\"><!-- width\u53d6\u503c\u4e0e\u9875\u9762\u5b9a\u4e49\u7684\u5bbd\u5ea6\u4e00\u81f4 -->\n<meta content=\"yes\" name=\"apple-mobile-web-app-capable\">\n<meta content=\"black\" name=\"apple-mobile-web-app-status-bar-style\">\n<meta content=\"telephone=no\" name=\"format-detection\">\n<meta content=\"email=no\" name=\"format-detection\">\n<title>\u6807\u9898<\/title>\n<link rel=\"stylesheet\" href=\"\/index.css\">\n<\/head>\n<body>\n<\/body>\n<\/html>\n<\/pre>\n<p>&nbsp;&nbsp;<\/p>\n<h2><span style=\"font-family: 'arial black', sans-serif;\"><strong>\u5176\u4ed6<\/strong><\/span><\/h2>\n<h3>\u79fb\u52a8\u7aef\u5b57\u4f53<\/h3>\n<p>\u4e2d\u6587\u5b57\u4f53\u4f7f\u7528\u7cfb\u7edf\u9ed8\u8ba4\u5373\u53ef\uff0c\u82f1\u6587\u7528Helvetica<\/p>\n<pre class=\"prettyprint linenums\">\nbody{font-family:Helvetica;}\n<\/pre>\n<p>\u53c2\u8003\u300a<a href=\"http:\/\/www.cnblogs.com\/PeunZhang\/p\/3592096.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u79fb\u52a8\u7aef\u4f7f\u7528\u5b57\u4f53\u7684\u601d\u8003<\/a>\u300b<br \/>\n&nbsp;<\/p>\n<h3>\u79fb\u52a8\u7aef\u5b57\u4f53\u5355\u4f4dfont-size\u9009\u62e9px\u8fd8\u662frem<\/h3>\n<p>\u5bf9\u4e8e\u53ea\u9700\u8981\u9002\u914d\u5c11\u90e8\u5206\u624b\u673a\u8bbe\u5907\uff0c\u4e14\u5206\u8fa8\u7387\u5bf9\u9875\u9762\u5f71\u54cd\u4e0d\u5927\u7684\uff0c\u4f7f\u7528px\u5373\u53ef<br \/>\n\u5bf9\u4e8e\u9700\u8981\u9002\u914d\u5404\u79cd\u79fb\u52a8\u8bbe\u5907\uff0c\u4f7f\u7528rem\uff0c\u4f8b\u5982\u53ea\u9700\u8981\u9002\u914diPhone\u548ciPad\u7b49\u5206\u8fa8\u7387\u5dee\u522b\u6bd4\u8f83\u633a\u5927\u7684\u8bbe\u5907<br \/>\n\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u65b9\u6cd5\uff1a<\/p>\n<pre class=\"prettyprint linenums\">\nhtml{font-size:10px}\n@media screen and (min-width:321px) and (max-width:375px){html{font-size:11px}}\n@media screen and (min-width:376px) and (max-width:414px){html{font-size:12px}}\n@media screen and (min-width:415px) and (max-width:639px){html{font-size:15px}}\n@media screen and (min-width:640px) and (max-width:719px){html{font-size:20px}}\n@media screen and (min-width:720px) and (max-width:749px){html{font-size:22.5px}}\n@media screen and (min-width:750px) and (max-width:799px){html{font-size:23.5px}}\n@media screen and (min-width:800px){html{font-size:25px}}\n<\/pre>\n<h3>\u79fb\u52a8\u7aeftouch\u4e8b\u4ef6(\u533a\u5206webkit \u548c winphone)<\/h3>\n<p>\u5f53\u7528\u6237\u624b\u6307\u653e\u5728\u79fb\u52a8\u8bbe\u5907\u5728\u5c4f\u5e55\u4e0a\u6ed1\u52a8\u4f1a\u89e6\u53d1\u7684touch\u4e8b\u4ef6<br \/>\n\u4ee5\u4e0b\u652f\u6301webkit<\/p>\n<ul>\n<li>touchstart\u2014\u2014\u5f53\u624b\u6307\u89e6\u78b0\u5c4f\u5e55\u65f6\u5019\u53d1\u751f\u3002\u4e0d\u7ba1\u5f53\u524d\u6709\u591a\u5c11\u53ea\u624b\u6307<\/li>\n<li>touchmove\u2014\u2014\u5f53\u624b\u6307\u5728\u5c4f\u5e55\u4e0a\u6ed1\u52a8\u65f6\u8fde\u7eed\u89e6\u53d1\u3002\u901a\u5e38\u6211\u4eec\u518d\u6ed1\u5c4f\u9875\u9762\uff0c\u4f1a\u8c03\u7528event\u7684preventDefault()\u53ef\u4ee5\u963b\u6b62\u9ed8\u8ba4\u60c5\u51b5\u7684\u53d1\u751f\uff1a\u963b\u6b62\u9875\u9762\u6eda\u52a8<\/li>\n<li>touchend\u2014\u2014\u5f53\u624b\u6307\u79bb\u5f00\u5c4f\u5e55\u65f6\u89e6\u53d1<\/li>\n<li>touchcancel\u2014\u2014\u7cfb\u7edf\u505c\u6b62\u8ddf\u8e2a\u89e6\u6478\u65f6\u5019\u4f1a\u89e6\u53d1\u3002\u4f8b\u5982\u5728\u89e6\u6478\u8fc7\u7a0b\u4e2d\u7a81\u7136\u9875\u9762alert()\u4e00\u4e2a\u63d0\u793a\u6846\uff0c\u6b64\u65f6\u4f1a\u89e6\u53d1\u8be5\u4e8b\u4ef6\uff0c\u8fd9\u4e2a\u4e8b\u4ef6\u6bd4\u8f83\u5c11\u7528<\/li>\n<\/ul>\n<p>TouchEvent<\/p>\n<ul>\n<li>touches\uff1a\u5c4f\u5e55\u4e0a\u6240\u6709\u624b\u6307\u7684\u4fe1\u606f<\/li>\n<li>targetTouches\uff1a\u624b\u6307\u5728\u76ee\u6807\u533a\u57df\u7684\u624b\u6307\u4fe1\u606f<\/li>\n<li>changedTouches\uff1a\u6700\u8fd1\u4e00\u6b21\u89e6\u53d1\u8be5\u4e8b\u4ef6\u7684\u624b\u6307\u4fe1\u606f<\/li>\n<li>touchend\u65f6\uff0ctouches\u4e0etargetTouches\u4fe1\u606f\u4f1a\u88ab\u5220\u9664\uff0cchangedTouches\u4fdd\u5b58\u7684\u6700\u540e\u4e00\u6b21\u7684\u4fe1\u606f\uff0c\u6700\u597d\u7528\u4e8e\u8ba1\u7b97\u624b\u6307\u4fe1\u606f<\/li>\n<\/ul>\n<p>\u53c2\u6570\u4fe1\u606f(changedTouches[0])<\/p>\n<ul>\n<li>clientX\u3001clientY\u5728\u663e\u793a\u533a\u7684\u5750\u6807<\/li>\n<li>target\uff1a\u5f53\u524d\u5143\u7d20<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u652f\u6301winphone 8<\/p>\n<ul>\n<li>MSPointerDown\u2014\u2014\u5f53\u624b\u6307\u89e6\u78b0\u5c4f\u5e55\u65f6\u5019\u53d1\u751f\u3002\u4e0d\u7ba1\u5f53\u524d\u6709\u591a\u5c11\u53ea\u624b\u6307<\/li>\n<li>MSPointerMove\u2014\u2014\u5f53\u624b\u6307\u5728\u5c4f\u5e55\u4e0a\u6ed1\u52a8\u65f6\u8fde\u7eed\u89e6\u53d1\u3002\u901a\u5e38\u6211\u4eec\u518d\u6ed1\u5c4f\u9875\u9762\uff0c\u4f1a\u8c03\u7528css\u7684html{-ms-touch-action: none;}\u53ef\u4ee5\u963b\u6b62\u9ed8\u8ba4\u60c5\u51b5\u7684\u53d1\u751f\uff1a\u963b\u6b62\u9875\u9762\u6eda\u52a8<\/li>\n<li>MSPointerUp\u2014\u2014\u5f53\u624b\u6307\u79bb\u5f00\u5c4f\u5e55\u65f6\u89e6\u53d1<\/li>\n<\/ul>\n<p>\u79fb\u52a8\u7aefclick\u5c4f\u5e55\u4ea7\u751f200-300 ms\u7684\u5ef6\u8fdf\u54cd\u5e94<br \/>\n\u79fb\u52a8\u8bbe\u5907\u4e0a\u7684web\u7f51\u9875\u662f\u6709300ms\u5ef6\u8fdf\u7684\uff0c\u73a9\u73a9\u4f1a\u9020\u6210\u6309\u94ae\u70b9\u51fb\u5ef6\u8fdf\u751a\u81f3\u662f\u70b9\u51fb\u5931\u6548\u3002<br \/>\n\u4ee5\u4e0b\u662f\u5386\u53f2\u539f\u56e0\uff0c\u6765\u6e90\u4e00\u4e2a\u516c\u53f8\u5185\u4e00\u4e2a\u540c\u4e8b\u7684\u5206\u4eab\uff1a<br \/>\n2007\u5e74\u82f9\u679c\u53d1\u5e03\u9996\u6b3eiphone\u4e0aIOS\u7cfb\u7edf\u642d\u8f7d\u7684safari\u4e3a\u4e86\u5c06\u9002\u7528\u4e8ePC\u7aef\u4e0a\u5927\u5c4f\u5e55\u7684\u7f51\u9875\u80fd\u6bd4\u8f83\u597d\u7684\u5c55\u793a\u5728\u624b\u673a\u7aef\u4e0a\uff0c\u4f7f\u7528\u4e86\u53cc\u51fb\u7f29\u653e(double tap to zoom)\u7684\u65b9\u6848\uff0c\u6bd4\u5982\u4f60\u5728\u624b\u673a\u4e0a\u7528\u6d4f\u89c8\u5668\u6253\u5f00\u4e00\u4e2aPC\u4e0a\u7684\u7f51\u9875\uff0c\u4f60\u53ef\u80fd\u5728\u770b\u5230\u9875\u9762\u5185\u5bb9\u867d\u7136\u53ef\u4ee5\u6491\u6ee1\u6574\u4e2a\u5c4f\u5e55\uff0c\u4f46\u662f\u5b57\u4f53\u3001\u56fe\u7247\u90fd\u5f88\u5c0f\u770b\u4e0d\u6e05\uff0c\u6b64\u65f6\u53ef\u4ee5\u5feb\u901f\u53cc\u51fb\u5c4f\u5e55\u4e0a\u7684\u67d0\u4e00\u90e8\u5206\uff0c\u4f60\u5c31\u80fd\u770b\u6e05\u8be5\u90e8\u5206\u653e\u5927\u540e\u7684\u5185\u5bb9\uff0c\u518d\u6b21\u53cc\u51fb\u540e\u80fd\u56de\u5230\u539f\u59cb\u72b6\u6001\u3002<br \/>\n\u53cc\u51fb\u7f29\u653e\u662f\u6307\u7528\u624b\u6307\u5728\u5c4f\u5e55\u4e0a\u5feb\u901f\u70b9\u51fb\u4e24\u6b21\uff0ciOS \u81ea\u5e26\u7684 Safari \u6d4f\u89c8\u5668\u4f1a\u5c06\u7f51\u9875\u7f29\u653e\u81f3\u539f\u59cb\u6bd4\u4f8b\u3002<br \/>\n\u539f\u56e0\u5c31\u51fa\u5728\u6d4f\u89c8\u5668\u9700\u8981\u5982\u4f55\u5224\u65ad\u5feb\u901f\u70b9\u51fb\u4e0a\uff0c\u5f53\u7528\u6237\u5728\u5c4f\u5e55\u4e0a\u5355\u51fb\u67d0\u4e00\u4e2a\u5143\u7d20\u65f6\u5019\uff0c\u4f8b\u5982\u8df3\u8f6c\u94fe\u63a5&lt;a href=\u201d#\u201d&gt;&lt;\/a&gt;\uff0c\u6b64\u5904\u6d4f\u89c8\u5668\u4f1a\u5148\u6355\u83b7\u8be5\u6b21\u5355\u51fb\uff0c\u4f46\u6d4f\u89c8\u5668\u4e0d\u80fd\u51b3\u5b9a\u7528\u6237\u662f\u5355\u7eaf\u8981\u70b9\u51fb\u94fe\u63a5\u8fd8\u662f\u8981\u53cc\u51fb\u8be5\u90e8\u5206\u533a\u57df\u8fdb\u884c\u7f29\u653e\u64cd\u4f5c\uff0c\u6240\u4ee5\uff0c\u6355\u83b7\u7b2c\u4e00\u6b21\u5355\u51fb\u540e\uff0c\u6d4f\u89c8\u5668\u4f1a\u5148Hold\u4e00\u6bb5\u65f6\u95f4t\uff0c\u5982\u679c\u5728t\u65f6\u95f4\u533a\u95f4\u91cc\u7528\u6237\u672a\u8fdb\u884c\u4e0b\u4e00\u6b21\u70b9\u51fb\uff0c\u5219\u6d4f\u89c8\u5668\u4f1a\u505a\u5355\u51fb\u8df3\u8f6c\u94fe\u63a5\u7684\u5904\u7406\uff0c\u5982\u679ct\u65f6\u95f4\u91cc\u7528\u6237\u8fdb\u884c\u4e86\u7b2c\u4e8c\u6b21\u5355\u51fb\u64cd\u4f5c\uff0c\u5219\u6d4f\u89c8\u5668\u4f1a\u7981\u6b62\u8df3\u8f6c\uff0c\u8f6c\u800c\u8fdb\u884c\u5bf9\u8be5\u90e8\u5206\u533a\u57df\u9875\u9762\u7684\u7f29\u653e\u64cd\u4f5c\u3002\u90a3\u4e48\u8fd9\u4e2a\u65f6\u95f4\u533a\u95f4t\u6709\u591a\u5c11\u5462\uff1f\u5728IOS safari\u4e0b\uff0c\u5927\u6982\u4e3a300\u6beb\u79d2\u3002\u8fd9\u5c31\u662f\u5ef6\u8fdf\u7684\u7531\u6765\u3002\u9020\u6210\u7684\u540e\u679c\u7528\u6237\u7eaf\u7cb9\u5355\u51fb\u9875\u9762\uff0c\u9875\u9762\u9700\u8981\u8fc7\u4e00\u6bb5\u65f6\u95f4\u624d\u54cd\u5e94\uff0c\u7ed9\u7528\u6237\u6162\u4f53\u9a8c\u611f\u89c9\uff0c\u5bf9\u4e8eweb\u5f00\u53d1\u8005\u6765\u8bf4\u662f\uff0c\u9875\u9762js\u6355\u83b7click\u4e8b\u4ef6\u7684\u56de\u8c03\u51fd\u6570\u5904\u7406\uff0c\u9700\u8981300ms\u540e\u624d\u751f\u6548\uff0c\u4e5f\u5c31\u95f4\u63a5\u5bfc\u81f4\u5f71\u54cd\u5176\u4ed6\u4e1a\u52a1\u903b\u8f91\u7684\u5904\u7406\u3002<br \/>\n<strong>\u89e3\u51b3\u65b9\u6848\uff1a<\/strong><\/p>\n<ul>\n<li>fastclick\u53ef\u4ee5\u89e3\u51b3\u5728\u624b\u673a\u4e0a\u70b9\u51fb\u4e8b\u4ef6\u7684300ms\u5ef6\u8fdf<\/li>\n<li>zepto\u7684touch\u6a21\u5757\uff0ctap\u4e8b\u4ef6\u4e5f\u662f\u4e3a\u4e86\u89e3\u51b3\u5728click\u7684\u5ef6\u8fdf\u95ee\u9898<\/li>\n<\/ul>\n<p><strong>\u89e6\u6478\u4e8b\u4ef6\u7684\u54cd\u5e94\u987a\u5e8f<\/strong><\/p>\n<ol>\n<li>ontouchstart<\/li>\n<li>ontouchmove<\/li>\n<li>ontouchend<\/li>\n<li>onclick<\/li>\n<\/ol>\n<p>\u89e3\u51b3300ms\u5ef6\u8fdf\u7684\u95ee\u9898\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u7ed1\u5b9aontouchstart\u4e8b\u4ef6\uff0c\u52a0\u5feb\u5bf9\u4e8b\u4ef6\u7684\u54cd\u5e94<\/p>\n<h3>\u4ec0\u4e48\u662fRetina \u663e\u793a\u5c4f\uff0c\u5e26\u6765\u4e86\u4ec0\u4e48\u95ee\u9898<\/h3>\n<p>retina\uff1a\u4e00\u79cd\u5177\u5907\u8d85\u9ad8\u50cf\u7d20\u5bc6\u5ea6\u7684\u6db2\u6676\u5c4f\uff0c\u540c\u6837\u5927\u5c0f\u7684\u5c4f\u5e55\u4e0a\u663e\u793a\u7684\u50cf\u7d20\u70b9\u75311\u4e2a\u53d8\u4e3a\u591a\u4e2a\uff0c\u5982\u5728\u540c\u6837\u5e26\u4e0b\u7684\u5c4f\u5e55\u4e0a\uff0c\u82f9\u679c\u8bbe\u5907\u7684retina\u663e\u793a\u5c4f\u4e2d\uff0c\u50cf\u7d20\u70b91\u4e2a\u53d8\u4e3a4\u4e2a<br \/>\n\u5728\u9ad8\u6e05\u663e\u793a\u5c4f\u4e2d\u7684\u4f4d\u56fe\u88ab\u653e\u5927\uff0c\u56fe\u7247\u4f1a\u53d8\u5f97\u6a21\u7cca\uff0c\u56e0\u6b64\u79fb\u52a8\u7aef\u7684\u89c6\u89c9\u7a3f\u901a\u5e38\u4f1a\u8bbe\u8ba1\u4e3a\u4f20\u7edfPC\u76842\u500d<br \/>\n\u90a3\u4e48\uff0c\u524d\u7aef\u7684\u5e94\u5bf9\u65b9\u6848\u662f\uff1a<br \/>\n\u8bbe\u8ba1\u7a3f\u5207\u51fa\u6765\u7684\u56fe\u7247\u957f\u5bbd\u4fdd\u8bc1\u4e3a\u5076\u6570\uff0c\u5e76\u4f7f\u7528backgroud-size\u628a\u56fe\u7247\u7f29\u5c0f\u4e3a\u539f\u6765\u76841\/2<br \/>\n\/\/\u4f8b\u5982\u56fe\u7247\u5bbd\u9ad8\u4e3a\uff1a200px*200px\uff0c\u90a3\u4e48\u5199\u6cd5\u5982\u4e0b<\/p>\n<pre class=\"prettyprint linenums\">\n.css{width:100px;height:100px;background-size:100px 100px;}\n<\/pre>\n<p>\u5176\u5b83\u5143\u7d20\u7684\u53d6\u503c\u4e3a\u539f\u6765\u76841\/2\uff0c\u4f8b\u5982\u89c6\u89c9\u7a3f40px\u7684\u5b57\u4f53\uff0c\u4f7f\u7528\u6837\u5f0f\u7684\u5199\u6cd5\u4e3a20px<\/p>\n<pre class=\"prettyprint linenums\">\n.css{font-size:20px}\n<\/pre>\n<p>\u53c2\u8003\u300a<a href=\"http:\/\/www.cnblogs.com\/PeunZhang\/p\/3441110.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u9ad8\u6e05\u663e\u793a\u5c4f\u539f\u7406\u53ca\u8bbe\u8ba1\u65b9\u6848<\/a>\u300b<\/p>\n<h3>ios\u7cfb\u7edf\u4e2d\u5143\u7d20\u88ab\u89e6\u6478\u65f6\u4ea7\u751f\u7684\u534a\u900f\u660e\u7070\u8272\u906e\u7f69\u600e\u4e48\u53bb\u6389<\/h3>\n<p>ios\u7528\u6237\u70b9\u51fb\u4e00\u4e2a\u94fe\u63a5\uff0c\u4f1a\u51fa\u73b0\u4e00\u4e2a\u534a\u900f\u660e\u7070\u8272\u906e\u7f69, \u5982\u679c\u60f3\u8981\u7981\u7528\uff0c\u53ef\u8bbe\u7f6e-webkit-tap-highlight-color\u7684alpha\u503c\u4e3a0\uff0c\u4e5f\u5c31\u662f\u5c5e\u6027\u503c\u7684\u6700\u540e\u4e00\u4f4d\u8bbe\u7f6e\u4e3a0\u5c31\u53ef\u4ee5\u53bb\u9664\u534a\u900f\u660e\u7070\u8272\u906e\u7f69<\/p>\n<pre class=\"prettyprint linenums\">\na,button,input,textarea{-webkit-tap-highlight-color: rgba(0,0,0,0;)}\n<\/pre>\n<p>\u90e8\u5206android\u7cfb\u7edf\u4e2d\u5143\u7d20\u88ab\u70b9\u51fb\u65f6\u4ea7\u751f\u7684\u8fb9\u6846\u600e\u4e48\u53bb\u6389<br \/>\nandroid\u7528\u6237\u70b9\u51fb\u4e00\u4e2a\u94fe\u63a5\uff0c\u4f1a\u51fa\u73b0\u4e00\u4e2a\u8fb9\u6846\u6216\u8005\u534a\u900f\u660e\u7070\u8272\u906e\u7f69, \u4e0d\u540c\u751f\u4ea7\u5546\u5b9a\u4e49\u51fa\u6765\u989d\u6548\u679c\u4e0d\u4e00\u6837\uff0c\u53ef\u8bbe\u7f6e-webkit-tap-highlight-color\u7684alpha\u503c\u4e3a0\u53bb\u9664\u90e8\u5206\u673a\u5668\u81ea\u5e26\u7684\u6548\u679c<\/p>\n<pre class=\"prettyprint linenums\">\na,button,input,textarea{\n-webkit-tap-highlight-color: rgba(0,0,0,0;)\n-webkit-user-modify:read-write-plaintext-only;\n}\n<\/pre>\n<p>-webkit-user-modify\u6709\u4e2a\u526f\u4f5c\u7528\uff0c\u5c31\u662f\u8f93\u5165\u6cd5\u4e0d\u518d\u80fd\u591f\u8f93\u5165\u591a\u4e2a\u5b57\u7b26<br \/>\n\u53e6\u5916\uff0c\u6709\u4e9b\u673a\u578b\u53bb\u9664\u4e0d\u4e86\uff0c\u5982\u5c0f\u7c732<br \/>\n\u5bf9\u4e8e\u6309\u94ae\u7c7b\u8fd8\u6709\u4e2a\u529e\u6cd5\uff0c\u4e0d\u4f7f\u7528a\u6216\u8005input\u6807\u7b7e\uff0c\u76f4\u63a5\u7528div\u6807\u7b7e<br \/>\n\u53c2\u8003\u300a<a href=\"http:\/\/xn--androida-r39lv4co2cc0ykjse41cb1as71mo7ee4zt11g931a\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5982\u4f55\u53bb\u9664android\u4e0aa\u6807\u7b7e\u4ea7\u751f\u7684\u8fb9\u6846<\/a>\u300b<\/p>\n<h3>winphone\u7cfb\u7edfa\u3001input\u6807\u7b7e\u88ab\u70b9\u51fb\u65f6\u4ea7\u751f\u7684\u534a\u900f\u660e\u7070\u8272\u80cc\u666f\u600e\u4e48\u53bb\u6389<\/h3>\n<pre class=\"prettyprint linenums\">\n<meta name=\"msapplication-tap-highlight\" content=\"no\">\n<\/pre>\n<h3>webkit\u8868\u5355\u5143\u7d20\u7684\u9ed8\u8ba4\u5916\u89c2\u600e\u4e48\u91cd\u7f6e<\/h3>\n<pre class=\"prettyprint linenums\">\n.css{-webkit-appearance:none;}\n<\/pre>\n<h3>webkit\u8868\u5355\u8f93\u5165\u6846placeholder\u7684\u989c\u8272\u503c\u80fd\u6539\u53d8\u4e48<\/h3>\n<pre class=\"prettyprint linenums\">\ninput::-webkit-input-placeholder{color:#AAAAAA;}\ninput:focus::-webkit-input-placeholder{color:#EEEEEE;}\n<\/pre>\n<h3>webkit\u8868\u5355\u8f93\u5165\u6846placeholder\u7684\u6587\u5b57\u80fd\u6362\u884c\u4e48<\/h3>\n<p>ios\u53ef\u4ee5\uff0candroid\u4e0d\u884c~<br \/>\n\u5728textarea\u6807\u7b7e\u4e0b\u90fd\u53ef\u4ee5\u6362\u884c~<br \/>\n&nbsp;<\/p>\n<h3>IE10\uff08winphone8\uff09\u8868\u5355\u5143\u7d20\u9ed8\u8ba4\u5916\u89c2\u5982\u4f55\u91cd\u7f6e<\/h3>\n<p>\u7981\u7528 select \u9ed8\u8ba4\u4e0b\u62c9\u7bad\u5934<br \/>\n::-ms-expand \u9002\u7528\u4e8e\u8868\u5355\u9009\u62e9\u63a7\u4ef6\u4e0b\u62c9\u7bad\u5934\u7684\u4fee\u6539\uff0c\u6709\u591a\u4e2a\u5c5e\u6027\u503c\uff0c\u8bbe\u7f6e\u5b83\u9690\u85cf (display:none) \u5e76\u4f7f\u7528\u80cc\u666f\u56fe\u7247\u6765\u4fee\u9970\u53ef\u5f97\u5230\u6211\u4eec\u60f3\u8981\u7684\u6548\u679c\u3002<\/p>\n<pre class=\"prettyprint linenums\">\nselect::-ms-expand {\ndisplay: none;\n}\n<\/pre>\n<p>\u7981\u7528 radio \u548c checkbox \u9ed8\u8ba4\u6837\u5f0f<br \/>\n::-ms-check \u9002\u7528\u4e8e\u8868\u5355\u590d\u9009\u6846\u6216\u5355\u9009\u6309\u94ae\u9ed8\u8ba4\u56fe\u6807\u7684\u4fee\u6539\uff0c\u540c\u6837\u6709\u591a\u4e2a\u5c5e\u6027\u503c\uff0c\u8bbe\u7f6e\u5b83\u9690\u85cf (display:none) \u5e76\u4f7f\u7528\u80cc\u666f\u56fe\u7247\u6765\u4fee\u9970\u53ef\u5f97\u5230\u6211\u4eec\u60f3\u8981\u7684\u6548\u679c\u3002<\/p>\n<pre class=\"prettyprint linenums\">\ninput[type=radio]::-ms-check,\ninput[type=checkbox]::-ms-check\n{\ndisplay: none;\n}\n<\/pre>\n<h3>\u7981\u7528PC\u7aef\u8868\u5355\u8f93\u5165\u6846\u9ed8\u8ba4\u6e05\u9664\u6309\u94ae<\/h3>\n<p>\u5f53\u8868\u5355\u6587\u672c\u8f93\u5165\u6846\u8f93\u5165\u5185\u5bb9\u540e\u4f1a\u663e\u793a\u6587\u672c\u6e05\u9664\u6309\u94ae\uff0c::-ms-clear \u9002\u7528\u4e8e\u8be5\u6e05\u9664\u6309\u94ae\u7684\u4fee\u6539\uff0c\u540c\u6837\u8bbe\u7f6e\u4f7f\u5b83\u9690\u85cf (display:none) \u5e76\u4f7f\u7528\u80cc\u666f\u56fe\u7247\u6765\u4fee\u9970\u53ef\u5f97\u5230\u6211\u4eec\u60f3\u8981\u7684\u6548\u679c\u3002<\/p>\n<pre class=\"prettyprint linenums\">\ninput[type=text]::-ms-clear,\ninput[type=tel]::-ms-clear,\ninput[type=number]::-ms-clear\n{\ndisplay: none;\n}\n<\/pre>\n<h3>\u7981\u6b62ios \u957f\u6309\u65f6\u4e0d\u89e6\u53d1\u7cfb\u7edf\u7684\u83dc\u5355\uff0c\u7981\u6b62ios&#038;android\u957f\u6309\u65f6\u4e0b\u8f7d\u56fe\u7247<\/h3>\n<pre class=\"prettyprint linenums\">\n.css{-webkit-touch-callout: none}\n<\/pre>\n<h3>\u7981\u6b62ios\u548candroid\u7528\u6237\u9009\u4e2d\u6587\u5b57<\/h3>\n<pre class=\"prettyprint linenums\">\n.css{-webkit-user-select:none}\n<\/pre>\n<p>\u53c2\u8003\u300a<a href=\"http:\/\/www.cnblogs.com\/PeunZhang\/p\/3522603.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u5982\u4f55\u6539\u53d8\u8868\u5355\u5143\u7d20\u7684\u5916\u89c2(for Webkit and IE10)<\/a>\u300b<\/p>\n<h3>\u6253\u7535\u8bdd\u53d1\u77ed\u4fe1\u5199\u90ae\u4ef6\u600e\u4e48\u5b9e\u73b0<\/h3>\n<p>\u6253\u7535\u8bdd<\/p>\n<pre class=\"prettyprint linenums\">\n<a href=\"tel:0755-10086\">\u6253\u7535\u8bdd\u7ed9:0755-10086<\/a>\n<\/pre>\n<p>\u53d1\u77ed\u4fe1\uff0cwinphone\u7cfb\u7edf\u65e0\u6548<\/p>\n<pre class=\"prettyprint linenums\">\n<a href=\"sms:10086\">\u53d1\u77ed\u4fe1\u7ed9: 10086<\/a>\n<\/pre>\n<p>\u5199\u90ae\u4ef6\uff0c\u53ef\u53c2\u8003\u300a<a href=\"http:\/\/www.cnblogs.com\/PeunZhang\/p\/4952783.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u79fb\u52a8web\u9875\u9762\u7ed9\u7528\u6237\u53d1\u9001\u90ae\u4ef6\u7684\u65b9\u6cd5<\/a>\u300b<\/p>\n<pre class=\"prettyprint linenums\">\n<a href=\"mailto:peun@foxmail.com\">peun@foxmail.com<\/a>\n<\/pre>\n<h3>\u6a21\u62df\u6309\u94aehover\u6548\u679c<\/h3>\n<p>\u79fb\u52a8\u7aef\u89e6\u6478\u6309\u94ae\u7684\u6548\u679c\uff0c\u53ef\u660e\u793a\u7528\u6237\u6709\u4e9b\u4e8b\u60c5\u6b63\u8981\u53d1\u751f\uff0c\u662f\u4e00\u4e2a\u6bd4\u8f83\u597d\u4f53\u9a8c\uff0c\u4f46\u662f\u79fb\u52a8\u8bbe\u5907\u4e2d\u5e76\u6ca1\u6709\u9f20\u6807\u6307\u9488\uff0c\u4f7f\u7528css\u7684hover\u5e76\u4e0d\u80fd\u6ee1\u8db3\u6211\u4eec\u7684\u9700\u6c42\uff0c\u8fd8\u597d\u56fd\u5916\u6709\u4e2a\u6fc0\u6d3bcss\u7684active\u6548\u679c\uff0c\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre class=\"prettyprint linenums\">\n<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no\" name=\"viewport\">\n<meta content=\"yes\" name=\"apple-mobile-web-app-capable\">\n<meta content=\"black\" name=\"apple-mobile-web-app-status-bar-style\">\n<meta content=\"telephone=no\" name=\"format-detection\">\n<meta content=\"email=no\" name=\"format-detection\">\n<style type=\"text\/css\">\na{-webkit-tap-highlight-color: rgba(0,0,0,0);}\n.btn-blue{display:block;height:42px;line-height:42px;text-align:center;border-radius:4px;font-size:18px;color:#FFFFFF;background-color: #4185F3;}\n.btn-blue:active{background-color: #357AE8;}\n<\/style>\n<\/head>\n<body>\n<div class=\"btn-blue\">\u6309\u94ae<\/div>\n<script type=\"text\/javascript\">\ndocument.addEventListener(\"touchstart\", function(){}, true)\n<\/script>\n<\/body>\n<\/html>\n<\/pre>\n<p>\u517c\u5bb9\u6027ios5+\u3001\u90e8\u5206android 4+\u3001winphone 8<br \/>\n\u8981\u505a\u5230\u5168\u517c\u5bb9\u7684\u529e\u6cd5\uff0c\u53ef\u901a\u8fc7\u7ed1\u5b9aontouchstart\u548contouchend\u6765\u63a7\u5236\u6309\u94ae\u7684\u7c7b\u540d<\/p>\n<pre class=\"prettyprint linenums\">\n<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no\" name=\"viewport\">\n<meta content=\"yes\" name=\"apple-mobile-web-app-capable\">\n<meta content=\"black\" name=\"apple-mobile-web-app-status-bar-style\">\n<meta content=\"telephone=no\" name=\"format-detection\">\n<meta content=\"email=no\" name=\"format-detection\">\n<style type=\"text\/css\">\na{-webkit-tap-highlight-color: rgba(0,0,0,0);}\n.btn-blue{display:block;height:42px;line-height:42px;text-align:center;border-radius:4px;font-size:18px;color:#FFFFFF;background-color: #4185F3;}\n.btn-blue-on{background-color: #357AE8;}\n<\/style>\n<\/head>\n<body>\n<div class=\"btn-blue\">\u6309\u94ae<\/div>\n<script type=\"text\/javascript\">\nvar btnBlue = document.querySelector(\".btn-blue\");\nbtnBlue.ontouchstart = function(){\nthis.className = \"btn-blue btn-blue-on\"\n}\nbtnBlue.ontouchend = function(){\nthis.className = \"btn-blue\"\n}\n<\/script>\n<\/body>\n<\/html>\n<\/pre>\n<h3>\u5c4f\u5e55\u65cb\u8f6c\u7684\u4e8b\u4ef6\u548c\u6837\u5f0f<\/h3>\n<h3>\u4e8b\u4ef6<\/h3>\n<p>window.orientation\uff0c\u53d6\u503c\uff1a\u6b63\u8d1f90\u8868\u793a\u6a2a\u5c4f\u6a21\u5f0f\u30010\u548c180\u8868\u73b0\u4e3a\u7ad6\u5c4f\u6a21\u5f0f\uff1b<\/p>\n<pre class=\"prettyprint linenums\">\nwindow.onorientationchange = function(){\nswitch(window.orientation){\ncase -90:\ncase 90:\nalert(\"\u6a2a\u5c4f:\" + window.orientation);\ncase 0:\ncase 180:\nalert(\"\u7ad6\u5c4f:\" + window.orientation);\nbreak;\n}\n}\n<\/pre>\n<h3>\u6837\u5f0f<\/h3>\n<pre class=\"prettyprint linenums\">\n\/\/\u7ad6\u5c4f\u65f6\u4f7f\u7528\u7684\u6837\u5f0f\n@media all and (orientation:portrait) {\n.css{}\n}\n\/\/\u6a2a\u5c4f\u65f6\u4f7f\u7528\u7684\u6837\u5f0f\n@media all and (orientation:landscape) {\n.css{}\n}\n<\/pre>\n<p>audio\u5143\u7d20\u548cvideo\u5143\u7d20\u5728ios\u548candriod\u4e2d\u65e0\u6cd5\u81ea\u52a8\u64ad\u653e<br \/>\n\u5e94\u5bf9\u65b9\u6848\uff1a\u89e6\u5c4f\u5373\u64ad<\/p>\n<pre class=\"prettyprint linenums\">\n$('html').one('touchstart',function(){\naudio.play()\n})\n<\/pre>\n<p>\u53ef\u53c2\u8003\u300a<a href=\"http:\/\/www.cnblogs.com\/PeunZhang\/archive\/2013\/02\/05\/2893093.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u65e0\u6cd5\u81ea\u52a8\u64ad\u653e\u7684audio\u5143\u7d20<\/a>\u300b<\/p>\n<h3>\u6447\u4e00\u6447\u529f\u80fd<\/h3>\n<p>HTML5 deviceMotion\uff1a\u5c01\u88c5\u4e86\u8fd0\u52a8\u4f20\u611f\u5668\u6570\u636e\u7684\u4e8b\u4ef6\uff0c\u53ef\u4ee5\u83b7\u53d6\u624b\u673a\u8fd0\u52a8\u72b6\u6001\u4e0b\u7684\u8fd0\u52a8\u52a0\u901f\u5ea6\u7b49\u6570\u636e\u3002<\/p>\n<h3>\u624b\u673a\u62cd\u7167\u548c\u4e0a\u4f20\u56fe\u7247<\/h3>\n<pre class=\"prettyprint linenums\">\n<input type=\u201dfile\u201d>\u7684accept \u5c5e\u6027\n<\/pre>\n<pre class=\"prettyprint linenums\">\n<!-- \u9009\u62e9\u7167\u7247 -->\n<input type=file accept=\"image\/*\">\n<!-- \u9009\u62e9\u89c6\u9891 -->\n<input type=file accept=\"video\/*\">\n<\/pre>\n<h3>ios\u4f7f\u7528-webkit-text-size-adjust\u7981\u6b62\u8c03\u6574\u5b57\u4f53\u5927\u5c0f<\/h3>\n<pre class=\"prettyprint linenums\">\nbody{-webkit-text-size-adjust: 100%!important;}\n<\/pre>\n<p>\u6700\u597d\u7684\u89e3\u51b3\u65b9\u6848\uff1a<br \/>\n\u6574\u4e2a\u9875\u9762\u7528rem\u6216\u8005\u767e\u5206\u6bd4\u5e03\u5c40<br \/>\n\u6d88\u9664transition\u95ea\u5c4f<\/p>\n<pre class=\"prettyprint linenums\">\n.css{\n\/*\u8bbe\u7f6e\u5185\u5d4c\u7684\u5143\u7d20\u5728 3D \u7a7a\u95f4\u5982\u4f55\u5448\u73b0\uff1a\u4fdd\u7559 3D*\/\n-webkit-transform-style: preserve-3d;\n\/*\uff08\u8bbe\u7f6e\u8fdb\u884c\u8f6c\u6362\u7684\u5143\u7d20\u7684\u80cc\u9762\u5728\u9762\u5bf9\u7528\u6237\u65f6\u662f\u5426\u53ef\u89c1\uff1a\u9690\u85cf\uff09*\/\n-webkit-backface-visibility: hidden;\n}\n<\/pre>\n<p>\u5f00\u542f\u786c\u4ef6\u52a0\u901f<br \/>\n\u89e3\u51b3\u9875\u9762\u95ea\u767d<br \/>\n\u4fdd\u8bc1\u52a8\u753b\u6d41\u7545<\/p>\n<pre class=\"prettyprint linenums\">\n.css {\n-webkit-transform: translate3d(0, 0, 0);\n-moz-transform: translate3d(0, 0, 0);\n-ms-transform: translate3d(0, 0, 0);\ntransform: translate3d(0, 0, 0);\n}\n<\/pre>\n<p>\u53c2\u8003\u300a<a href=\"http:\/\/www.cnblogs.com\/PeunZhang\/p\/3510083.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u7528CSS\u5f00\u542f\u786c\u4ef6\u52a0\u901f\u6765\u63d0\u9ad8\u7f51\u7ad9\u6027\u80fd<\/a>\u300b<\/p>\n<h3>\u53d6\u6d88input\u5728ios\u4e0b\uff0c\u8f93\u5165\u7684\u65f6\u5019\u82f1\u6587\u9996\u5b57\u6bcd\u7684\u9ed8\u8ba4\u5927\u5199<\/h3>\n<pre class=\"prettyprint linenums\">\n<input autocapitalize=\"off\" autocorrect=\"off\" \/>\n<\/pre>\n<h3>android \u4e0a\u53bb\u6389\u8bed\u97f3\u8f93\u5165\u6309\u94ae<\/h3>\n<pre class=\"prettyprint linenums\">\ninput::-webkit-input-speech-button {display: none}\n<\/pre>\n<p>android 2.3 bug<br \/>\n@-webkit-keyframes \u9700\u8981\u4ee50%\u5f00\u59cb100%\u7ed3\u675f\uff0c0%\u7684\u767e\u5206\u53f7\u4e0d\u80fd\u53bb\u6389<br \/>\nafter\u548cbefore\u4f2a\u7c7b\u65e0\u6cd5\u4f7f\u7528\u52a8\u753banimation<br \/>\nborder-radius\u4e0d\u652f\u6301%\u5355\u4f4d<br \/>\ntranslate\u767e\u5206\u6bd4\u7684\u5199\u6cd5\u548cscale\u5728\u4e00\u8d77\u4f1a\u5bfc\u81f4\u5931\u6548\uff0c\u4f8b\u5982-webkit-transform: translate(-50%,-50%) scale(-0.5, 1)<br \/>\nandroid 4.x bug<br \/>\n\u4e09\u661f Galaxy S4\u4e2d\u81ea\u5e26\u6d4f\u89c8\u5668\u4e0d\u652f\u6301border-radius\u7f29\u5199<br \/>\n\u540c\u65f6\u8bbe\u7f6eborder-radius\u548c\u80cc\u666f\u8272\u7684\u65f6\u5019\uff0c\u80cc\u666f\u8272\u4f1a\u6ea2\u51fa\u5230\u5706\u89d2\u4ee5\u5916\u90e8\u5206<br \/>\n\u90e8\u5206\u624b\u673a(\u5982\u4e09\u661f)\uff0ca\u94fe\u63a5\u652f\u6301\u9f20\u6807:visited\u4e8b\u4ef6\uff0c\u4e5f\u5c31\u662f\u8bf4\u94fe\u63a5\u8bbf\u95ee\u540e\u6587\u5b57\u53d8\u4e3a\u7d2b\u8272<br \/>\nandroid\u65e0\u6cd5\u540c\u65f6\u64ad\u653e\u591a\u97f3\u9891audio<br \/>\n\u53c2\u8003\u300a<a href=\"https:\/\/github.com\/yisibl\/blog\/issues\/2\" target=\"_blank\" rel=\"noopener noreferrer\">border-radius \u79fb\u52a8\u4e4b\u4f24<\/a>\u300b<br \/>\n\u8bbe\u8ba1\u9ad8\u6027\u80fdCSS3\u52a8\u753b\u7684\u51e0\u4e2a\u8981\u7d20<br \/>\n\u5c3d\u53ef\u80fd\u5730\u4f7f\u7528\u5408\u6210\u5c5e\u6027transform\u548copacity\u6765\u8bbe\u8ba1CSS3\u52a8\u753b\uff0c\u4e0d\u4f7f\u7528position\u7684left\u548ctop\u6765\u5b9a\u4f4d<br \/>\n\u5229\u7528translate3D\u5f00\u542fGPU\u52a0\u901f<br \/>\n\u53c2\u8003\u300a<a href=\"http:\/\/www.html5rocks.com\/en\/tutorials\/speed\/high-performance-animations\/\" target=\"_blank\" rel=\"noopener noreferrer\">High Performance Animations<\/a>\u300b<\/p>\n<h3>fixed bug<\/h3>\n<ul>\n<li>ios\u4e0bfixed\u5143\u7d20\u5bb9\u6613\u5b9a\u4f4d\u51fa\u9519\uff0c\u8f6f\u952e\u76d8\u5f39\u51fa\u65f6\uff0c\u5f71\u54cdfixed\u5143\u7d20\u5b9a\u4f4d<\/li>\n<li>android\u4e0bfixed\u8868\u73b0\u8981\u6bd4iOS\u66f4\u597d\uff0c\u8f6f\u952e\u76d8\u5f39\u51fa\u65f6\uff0c\u4e0d\u4f1a\u5f71\u54cdfixed\u5143\u7d20\u5b9a\u4f4d<\/li>\n<li>ios4\u4e0b\u4e0d\u652f\u6301position:fixed<\/li>\n<\/ul>\n<p>\u89e3\u51b3\u65b9\u6848<\/p>\n<ul>\n<li>\u53ef\u7528isroll.js\uff0c\u6682\u65e0\u5b8c\u7f8e\u65b9\u6848<\/li>\n<\/ul>\n<p>\u53c2\u8003<br \/>\n\u300a<a href=\"https:\/\/github.com\/maxzhang\/maxzhang.github.com\/issues\/2\" target=\"_blank\" rel=\"noopener noreferrer\">\u79fb\u52a8\u7aefweb\u9875\u9762\u4f7f\u7528position:fixed\u95ee\u9898\u603b\u7ed3<\/a>\u300b<br \/>\n\u300a<a href=\"http:\/\/www.cnblogs.com\/PeunZhang\/archive\/2013\/06\/14\/3117589.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u4f7f\u7528iScroll.js\u89e3\u51b3ios4\u4e0b\u4e0d\u652f\u6301position:fixed\u7684\u95ee\u9898<\/a>\u300b<br \/>\n\u5982\u4f55\u963b\u6b62windows Phone\u7684\u9ed8\u8ba4\u89e6\u6478\u4e8b\u4ef6<br \/>\nwinphone\u4e0b\u9ed8\u8ba4\u89e6\u6478\u4e8b\u4ef6\u4e8b\u4ef6\u4f7f\u7528e.preventDefault\u662f\u65e0\u6548\u7684<br \/>\n\u76ee\u524d\u89e3\u51b3\u65b9\u6cd5\u662f\u4f7f\u7528\u6837\u5f0f\u6765\u7981\u7528<\/p>\n<pre class=\"prettyprint linenums\">\nhtml{-ms-touch-action: none;}\/* \u7981\u6b62winphone\u9ed8\u8ba4\u89e6\u6478\u4e8b\u4ef6 *\/\n<\/pre>\n<p>\u53c2\u8003\u300a<a href=\"http:\/\/stackoverflow.com\/questions\/13396297\/windows-phone-8-touch-support\" target=\"_blank\" rel=\"noopener noreferrer\">Windows phone 8 touch support<\/a>\u300b<br \/>\n\u64ad\u653e\u89c6\u9891\u4e0d\u5168\u5c4f<\/p>\n<pre class=\"prettyprint linenums\">\n<!--\n1.ios7+\u652f\u6301\u81ea\u52a8\u64ad\u653e\n2.\u652f\u6301Airplay\u7684\u8bbe\u5907\uff08\u5982\uff1a\u97f3\u7bb1\u3001Apple TV)\u64ad\u653e\nx-webkit-airplay=\"true\"\n3.\u64ad\u653e\u89c6\u9891\u4e0d\u5168\u5c4f\nwebkit-playsinline=\"true\"\n-->\n<video x-webkit-airplay=\"true\" webkit-playsinline=\"true\" preload=\"auto\" autoplay src=\"http:\/\/\"><\/video>\n<\/pre>\n<p>&nbsp;&nbsp;<\/p>\n<h2><span style=\"font-family: 'arial black', sans-serif;\"><strong>\u5e38\u7528\u7684\u79fb\u52a8\u7aef\u6846\u67b6<\/strong><\/span><\/h2>\n<h3>zepto.js<\/h3>\n<p>\u8bed\u6cd5\u4e0ejquery\u51e0\u4e4e\u4e00\u6837\uff0c\u4f1ajquery\u57fa\u672c\u4f1azepto~<br \/>\n\u6700\u65b0\u7248\u672c\u5df2\u7ecf\u66f4\u65b0\u52301.16<br \/>\n\u5b98\u7f51\uff1a<a href=\"http:\/\/zeptojs.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/zeptojs.com\/<\/a><br \/>\n\u4e2d\u6587(\u975e\u5b98\u7f51)\uff1a<a href=\"http:\/\/www.css88.com\/doc\/zeptojs_api\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.css88.com\/doc\/zeptojs_api\/<\/a><br \/>\n\u5e38\u4f7f\u7528\u7684\u6269\u5c55\u6a21\u5757\uff1a<br \/>\n\u6d4f\u89c8\u5668\u68c0\u6d4b\uff1a<a href=\"https:\/\/github.com\/madrobby\/zepto\/blob\/master\/src\/detect.js\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/madrobby\/zepto\/blob\/master\/src\/detect.js<\/a><br \/>\ntap\u4e8b\u4ef6\uff1a<a href=\"https:\/\/github.com\/madrobby\/zepto\/blob\/master\/src\/touch.js\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/madrobby\/zepto\/blob\/master\/src\/touch.js<\/a><br \/>\n&nbsp;<\/p>\n<h3><strong>iscroll.js<\/strong><\/h3>\n<p>\u89e3\u51b3\u9875\u9762\u4e0d\u652f\u6301\u5f39\u6027\u6eda\u52a8\uff0c\u4e0d\u652f\u6301fixed\u5f15\u8d77\u7684\u95ee\u9898~<br \/>\n\u5b9e\u73b0\u4e0b\u62c9\u5237\u65b0\uff0c\u6ed1\u5c4f\uff0c\u7f29\u653e\u7b49\u529f\u80fd~<br \/>\n\u6700\u65b0\u7248\u672c\u5df2\u7ecf\u66f4\u65b0\u52305.0<br \/>\n\u5b98\u7f51\uff1a<a href=\"http:\/\/cubiq.org\/iscroll-5\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/cubiq.org\/iscroll-5<\/a><br \/>\n&nbsp;<\/p>\n<h3><strong>underscore.js<\/strong><\/h3>\n<p>\u7b14\u8005\u6ca1\u7528\u8fc7\uff0c\u4e0d\u8fc7\u542c\u8bf4\u597d\u7528\uff0c\u63a8\u8350\u7ed9\u5927\u5bb6~<br \/>\n\u8be5\u5e93\u63d0\u4f9b\u4e86\u4e00\u6574\u5957\u51fd\u6570\u5f0f\u7f16\u7a0b\u7684\u5b9e\u7528\u529f\u80fd\uff0c\u4f46\u662f\u6ca1\u6709\u6269\u5c55\u4efb\u4f55JavaScript\u5185\u7f6e\u5bf9\u8c61\u3002<br \/>\n\u6700\u65b0\u7248\u672c\u5df2\u7ecf\u66f4\u65b0\u52301.8.2<br \/>\n\u5b98\u7f51\uff1a<a href=\"http:\/\/underscorejs.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/underscorejs.org\/<\/a><br \/>\n&nbsp;<\/p>\n<h3><strong>\u6ed1\u5c4f\u6846\u67b6<\/strong><\/h3>\n<p>\u9002\u5408\u4e0a\u4e0b\u6ed1\u5c4f\u3001\u5de6\u53f3\u6ed1\u5c4f\u7b49\u6ed1\u5c4f\u5207\u6362\u9875\u9762\u7684\u6548\u679c<br \/>\n<a href=\"https:\/\/github.com\/peunzhang\/slip.js\" target=\"_blank\" rel=\"noopener noreferrer\">slip.js<\/a><br \/>\n<a href=\"https:\/\/github.com\/peunzhang\/iSlider\" target=\"_blank\" rel=\"noopener noreferrer\">iSlider.js<\/a><br \/>\n<a href=\"https:\/\/github.com\/peunzhang\/fullpage\" target=\"_blank\" rel=\"noopener noreferrer\">fullpage.js<\/a><\/p>\n<h3><strong>flex\u5e03\u5c40<\/strong><\/h3>\n<p>flex\u5e03\u5c40\u76ee\u524d\u53ef\u4f7f\u7528\u5728\u79fb\u52a8\u4e2d\uff0c\u5e76\u975e\u6240\u6709\u7684\u8bed\u6cd5\u90fd\u5168\u517c\u5bb9\uff0c\u4f46\u4ee5\u4e0b\u5199\u6cd5\u7b14\u8005\u5b9e\u8df5\u8fc7\uff0c\u6548\u679c\u826f\u597d~<\/p>\n<pre class=\"prettyprint linenums\">\n\/* ============================================================\nflex\uff1a\u5b9a\u4e49\u5e03\u5c40\u4e3a\u76d2\u6a21\u578b\nflex-v\uff1a\u76d2\u6a21\u578b\u5782\u76f4\u5e03\u5c40\nflex-1\uff1a\u5b50\u5143\u7d20\u5360\u636e\u5269\u4f59\u7684\u7a7a\u95f4\nflex-align-center\uff1a\u5b50\u5143\u7d20\u5782\u76f4\u5c45\u4e2d\nflex-pack-center\uff1a\u5b50\u5143\u7d20\u6c34\u5e73\u5c45\u4e2d\nflex-pack-justify\uff1a\u5b50\u5143\u7d20\u4e24\u7aef\u5bf9\u9f50\n\u517c\u5bb9\u6027\uff1aios 4+\u3001android 2.3+\u3001winphone8+\n============================================================ *\/\n.flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}\n.flex-v{-webkit-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}\n.flex-1{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;}\n.flex-align-center{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;}\n.flex-pack-center{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}\n.flex-pack-justify{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}\n<\/pre>\n<h3>\u793a\u4f8b\uff1a\u4e24\u7aef\u5bf9\u9f50<\/h3>\n<pre class=\"prettyprint linenums\">\n<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no\" name=\"viewport\">\n<meta content=\"yes\" name=\"apple-mobile-web-app-capable\">\n<meta content=\"black\" name=\"apple-mobile-web-app-status-bar-style\">\n<meta content=\"telephone=no\" name=\"format-detection\">\n<meta content=\"email=no\" name=\"format-detection\">\n<style type=\"text\/css\">\n\/* ============================================================\nflex\uff1a\u5b9a\u4e49\u5e03\u5c40\u4e3a\u76d2\u6a21\u578b\nflex-v\uff1a\u76d2\u6a21\u578b\u5782\u76f4\u5e03\u5c40\nflex-1\uff1a\u5b50\u5143\u7d20\u5360\u636e\u5269\u4f59\u7684\u7a7a\u95f4\nflex-align-center\uff1a\u5b50\u5143\u7d20\u5782\u76f4\u5c45\u4e2d\nflex-pack-center\uff1a\u5b50\u5143\u7d20\u6c34\u5e73\u5c45\u4e2d\nflex-pack-justify\uff1a\u5b50\u5143\u7d20\u4e24\u7aef\u5bf9\u9f50\n\u517c\u5bb9\u6027\uff1aios 4+\u3001android 2.3+\u3001winphone8+\n============================================================ *\/\n.flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}\n.flex-v{-webkit-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}\n.flex-1{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;}\n.flex-align-center{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;}\n.flex-pack-center{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}\n.flex-pack-justify{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}\n<\/style>\n<\/head>\n<body>\n<div class=\"flex flex-pack-justify\">\n<div>\u6a21\u5757\u4e00<\/div>\n<div>\u6a21\u5757\u4e8c<\/div>\n<div>\u6a21\u5757\u4e09<\/div>\n<div>\u6a21\u5757\u56db<\/div>\n<\/div>\n<\/body>\n<\/html>\n<\/pre>\n<p>\u4f7f\u7528\u6ce8\u610f\uff1aflex\u4e0b\u7684\u5b50\u5143\u7d20\u5fc5\u987b\u4e3a\u5757\u7ea7\u5143\u7d20\uff0c\u975e\u5757\u7ea7\u5143\u7d20\u5728android2.3\u673a\u5668\u4e0bflex\u5931\u6548<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; meta H5\u9875\u9762\u7a97\u53e3\u81ea\u52a8\u8c03\u6574\u5230\u8bbe\u5907\u5bbd\u5ea6\uff0c\u5e76\u7981\u6b62\u7528\u6237\u7f29\u653e\u9875\u9762 \u5ffd\u7565\u5c06\u9875\u9762\u4e2d\u7684\u6570\u5b57\u8bc6\u522b\u4e3a\u7535\u8bdd\u53f7\u7801<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,10],"tags":[54,65,86,94,197,198],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry","category-codeshare","category-share","tag-meta","tag-retina","tag-touch","tag-viewport","tag-197","tag-198"],"_links":{"self":[{"href":"https:\/\/blog.lcsoul.top\/index.php\/wp-json\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lcsoul.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lcsoul.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lcsoul.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lcsoul.top\/index.php\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":0,"href":"https:\/\/blog.lcsoul.top\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.lcsoul.top\/index.php\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lcsoul.top\/index.php\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lcsoul.top\/index.php\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}