{"id":28288,"date":"2024-11-24T15:25:11","date_gmt":"2024-11-24T07:25:11","guid":{"rendered":"https:\/\/fwq.ai\/blog\/28288\/"},"modified":"2024-11-24T15:25:11","modified_gmt":"2024-11-24T07:25:11","slug":"ios-app-%e9%a1%b5%e9%9d%a2%e6%bb%91%e5%8a%a8%e5%8d%a1%e9%a1%bf%e4%b8%94%e5%86%85%e5%ae%b9%e6%98%be%e7%a4%ba%e4%b8%8d%e5%85%a8%ef%bc%8c%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/28288\/","title":{"rendered":"iOS App \u9875\u9762\u6ed1\u52a8\u5361\u987f\u4e14\u5185\u5bb9\u663e\u793a\u4e0d\u5168\uff0c\u5982\u4f55\u89e3\u51b3\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173148214742991.jpg\" class=\"aligncenter\" title=\"iOS App \u9875\u9762\u6ed1\u52a8\u5361\u987f\u4e14\u5185\u5bb9\u663e\u793a\u4e0d\u5168\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" alt=\"iOS App \u9875\u9762\u6ed1\u52a8\u5361\u987f\u4e14\u5185\u5bb9\u663e\u793a\u4e0d\u5168\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>ios app \u6ed1\u52a8\u5361\u987f\u9875\u9762\u663e\u793a\u4e0d\u5168\u7684\u89e3\u51b3\u4e4b\u9053<\/strong><\/p>\n<p>\u5728 iOS \u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u5f53\u9875\u9762\u9ad8\u5ea6\u8d85\u8fc7\u5c4f\u5e55\u9ad8\u5ea6\u65f6\uff0c\u5411\u4e0b\u6ed1\u52a8\u65f6\u9875\u9762\u5185\u5bb9\u663e\u793a\u4e0d\u5168\u5e76\u51fa\u73b0\u5361\u987f\u73b0\u8c61\u3002<\/p>\n<p><strong>\u6210\u56e0\u5206\u6790<\/strong><\/p>\n<p>iOS \u4f7f\u7528 Safari \u5185\u6838\uff0c\u5176\u5c06 -scrolling \u5c5e\u6027\u7684\u503c\u4e3a auto \u7684\u5143\u7d20\u6e32\u67d3\u5230\u539f\u751f\u63a7\u4ef6 UIScrollView\u3002\u5bf9\u4e8e\u8fd9\u7c7b\u5143\u7d20\uff0cSafari \u4f1a\u5728\u6839\u5c42\u521b\u5efa\u4e00\u4e2a UIScrollView\uff0c\u5e76\u5c06\u8be5\u5143\u7d20\u7684\u5b50\u5c42\u5206\u6d3e\u7ed9\u6e32\u67d3\u5f15\u64ce\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<p>\u89e3\u51b3\u6b64\u95ee\u9898\u7684\u5173\u952e\u5728\u4e8e\u5c06 overflow-scrolling \u5c5e\u6027\u7684\u503c\u8bbe\u7f6e\u4e3a touch\u3002\u8fd9\u6837\u505a\uff0cSafari \u5c06\u4f7f\u7528 touch \u4e8b\u4ef6\u76f4\u63a5\u5904\u7406\u6eda\u52a8\uff0c\u800c\u4e0d\u662f\u4f9d\u8d56\u4e8e\u539f\u751f\u63a7\u4ef6\u3002\u53ea\u9700\u5728\u516c\u5171\u6837\u5f0f\u4e2d\u6dfb\u52a0\u4ee5\u4e0b CSS \u4ee3\u7801\u5373\u53ef\uff1a<\/p>\n<pre>*{\n-webkit-overflow-scrolling: touch;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6dfb\u52a0\u6b64\u6837\u5f0f\u540e\uff0c\u9875\u9762\u5c06\u80fd\u591f\u5e73\u6ed1\u6eda\u52a8\uff0c\u4e14\u5185\u5bb9\u4e0d\u4f1a\u88ab\u622a\u65ad\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fiOS App \u9875\u9762\u6ed1\u52a8\u5361\u987f\u4e14\u5185\u5bb9\u663e\u793a\u4e0d\u5168\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ios app \u6ed1\u52a8\u5361\u987f\u9875\u9762\u663e\u793a\u4e0d\u5168\u7684\u89e3\u51b3\u4e4b\u9053 \u5728 iOS \u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u5f53\u9875\u9762\u9ad8\u5ea6\u8d85\u8fc7\u5c4f\u5e55\u9ad8\u5ea6\u65f6\uff0c\u5411\u4e0b\u6ed1\u52a8\u65f6\u9875\u9762\u5185\u5bb9\u663e\u793a\u4e0d\u5168\u5e76\u51fa\u73b0\u5361\u987f\u73b0\u8c61\u3002 \u6210\u56e0\u5206\u6790 iOS \u4f7f\u7528 Safari \u5185\u6838\uff0c\u5176\u5c06 -scrolling \u5c5e\u6027\u7684\u503c\u4e3a auto \u7684\u5143\u7d20\u6e32\u67d3\u5230\u539f\u751f\u63a7\u4ef6 UIScrollView\u3002\u5bf9\u4e8e\u8fd9\u7c7b\u5143\u7d20\uff0cSafari \u4f1a\u5728\u6839\u5c42\u521b\u5efa\u4e00\u4e2a UIScrollView\uff0c\u5e76\u5c06\u8be5\u5143\u7d20\u7684\u5b50\u5c42\u5206\u6d3e\u7ed9\u6e32\u67d3\u5f15\u64ce\u3002 \u89e3\u51b3\u65b9\u6848 \u89e3\u51b3\u6b64\u95ee\u9898\u7684\u5173\u952e\u5728\u4e8e\u5c06 overflow-scrolling \u5c5e\u6027\u7684\u503c\u8bbe\u7f6e\u4e3a touch\u3002\u8fd9\u6837\u505a\uff0cSafari \u5c06\u4f7f\u7528 touch \u4e8b\u4ef6\u76f4\u63a5\u5904\u7406\u6eda\u52a8\uff0c\u800c\u4e0d\u662f\u4f9d\u8d56\u4e8e\u539f\u751f\u63a7\u4ef6\u3002\u53ea\u9700\u5728\u516c\u5171\u6837\u5f0f\u4e2d\u6dfb\u52a0\u4ee5\u4e0b CSS \u4ee3\u7801\u5373\u53ef\uff1a *{ -webkit-overflow-scrolling: touch; } \u767b\u5f55\u540e\u590d\u5236 \u6dfb\u52a0\u6b64\u6837\u5f0f\u540e\uff0c\u9875\u9762\u5c06\u80fd\u591f\u5e73\u6ed1\u6eda\u52a8\uff0c\u4e14\u5185\u5bb9\u4e0d\u4f1a\u88ab\u622a\u65ad\u3002 \u4ee5\u4e0a\u5c31\u662fiOS App \u9875\u9762\u6ed1\u52a8\u5361\u987f\u4e14\u5185\u5bb9\u663e\u793a\u4e0d\u5168\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-28288","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=28288"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28288\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=28288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=28288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=28288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}