{"id":556,"date":"2024-02-28T13:30:28","date_gmt":"2024-02-28T05:30:28","guid":{"rendered":"https:\/\/flighhai.cn\/?p=556"},"modified":"2024-02-28T13:43:14","modified_gmt":"2024-02-28T05:43:14","slug":"html-%e6%a0%87%e7%ad%be","status":"publish","type":"post","link":"https:\/\/flighhai.cn\/?p=556","title":{"rendered":"HTML meta\u6807\u7b7e"},"content":{"rendered":"<p>&lt;meta&gt;\u5143\u7d20\u63d0\u4f9b\u6709\u5173\u9875\u9762\u7684\u5143\u4fe1\u606f\uff0c\u653e\u5728\u6587\u6863\u7684\u5934\u90e8\uff0c\u4e0d\u5305\u542b\u5185\u5bb9\uff0c\u5c5e\u6027\u5b9a\u4e49\u4e86\u4e0e\u6587\u6863\u76f8\u5173\u7684\u952e\u503c\u5bf9\uff0c\u4e0d\u4f1a\u663e\u793a\u5728\u9875\u9762\u4e0a\uff0c\u4f46\u5bf9\u4e8e\u673a\u5668\u662f\u53ef\u8bfb\u7684\u3002\u7528\u4e8e\u89c4\u5b9a\u9875\u9762\u7684\u63cf\u8ff0\u3001\u5173\u952e\u5b57\u3001\u6587\u6863\u7684\u4f5c\u8005\u3001\u6700\u540e\u4fee\u6539\u65f6\u95f4\u7b49\uff0c\u4e5f\u4f1a\u5305\u542b header \u5934\u4e2d\u7684\u4e00\u90e8\u5206\u4fe1\u606f\u3002<\/p>\n<p>name\u5c5e\u6027\u662f\u63cf\u8ff0\u7f51\u9875\u7684\uff0c\u5bf9\u5e94\u4e8econtent\uff08\u7f51\u9875\u5185\u5bb9\uff09\uff0c\u4ee5\u4fbf\u4e8e\u641c\u7d22\u5f15\u64ce\u673a\u5668\u4eba\u67e5\u627e\u3001\u5206\u7c7b\uff0c\u76ee\u524d\u51e0\u4e4e\u6240\u6709\u7684\u641c\u7d22\u5f15\u64ce\u90fd\u4f7f\u7528\u7f51\u4e0a\u673a\u5668\u4eba\u81ea\u52a8\u67e5\u627emeta\u503c\u6765\u7ed9\u7f51\u9875\u5206\u7c7b\u3002<\/p>\n<p>&lt;!&#8211; \u5b9a\u4e49\u6587\u6863\u5173\u952e\u8bcd\uff0c\u7528\u4e8e\u641c\u7d22\u5f15\u64ce &#8211;&gt;<br \/>\n&lt;meta name=&#8221;keywords&#8221; content=&#8221;HTML, CSS, XML, XHTML, JavaScript&#8221;&gt;<\/p>\n<p>&lt;!&#8211; \u5b9a\u4e49web\u9875\u9762\u63cf\u8ff0 &#8211;&gt;<br \/>\n&lt;meta name=&#8221;description&#8221; content=&#8221;Free Web tutorials on HTML and CSS&#8221;&gt;<\/p>\n<p>&lt;!&#8211; \u5b9a\u4e49\u9875\u9762\u4f5c\u8005 &#8211;&gt;<br \/>\n&lt;meta name=&#8221;author&#8221; content=&#8221;Hege Refsnes&#8221;&gt;<\/p>\n<p>&lt;!&#8211; \u7f16\u8f91\u5668\u7684\u8bf4\u660e &#8211;&gt;<br \/>\n&lt;meta name=&#8221;generator&#8221; content=&#8221;FrontPage 4.0&#8243;&gt;<\/p>\n<p>&lt;!&#8211; \u6807\u6ce8\u7248\u6743 &#8211;&gt;<br \/>\n&lt;meta name=\u201dcopyright\u201d content=\u201d\u672c\u7f51\u7ad9\u7248\u6743\u5f52\u61a8\u61a8\u6240\u6709\u201d&gt;<\/p>\n<p>&lt;!&#8211; \u901a\u77e5\u641c\u7d22\u5f15\u64ce\u591a\u5c11\u5929\u8bbf\u95ee\u4e00\u6b21 &#8211;&gt;<br \/>\n&lt;meta name=\u201drevisit-after\u201d content=\u201d7 days\u201d &gt;<\/p>\n<p>&lt;!&#8211; webkit\u5185\u6838\u8fdb\u884c\u89e3\u6790 &#8211;&gt;<br \/>\n&lt;meta name=&#8221;renderer&#8221; content=&#8221;webkit&#8221;&gt;<\/p>\n<p>&lt;!&#8211; \u9f20\u6807\u60ac\u505c\u5728\u4efb\u52a1\u680f\u56fa\u5b9a\u6309\u94ae\u65f6\u663e\u793a &#8211;&gt;<br \/>\n&lt;meta name=&#8221;application-name&#8221; content=&#8221;\u4e24\u4e2a\u61a8\u61a8&#8221; &gt;<\/p>\n<p>&lt;!&#8211; \u9f20\u6807\u60ac\u505cWindows\u7684\u5f00\u59cb\u83dc\u5355\u6216\u684c\u9762\u7684\u7f51\u7ad9\u5feb\u6377\u65b9\u5f0f\u65f6&#8211;&gt;<br \/>\n&lt;meta name=&#8221;msapplication-tooltip&#8221; content=&#8221;\u4e24\u4e2a\u6206\u6206&#8221; &gt;<\/p>\n<p>&lt;!&#8211; \u8d77\u59cb URL &#8211;&gt;<br \/>\n&lt;meta name=&#8221;msapplication-starturl&#8221; content=&#8221;http:\/\/\u4e24\u4e2a\u61a8\u61a8.com&#8221; &gt;<\/p>\n<p>&lt;!&#8211; \u56fa\u5b9a\u7f51\u7ad9\u9996\u6b21\u542f\u52a8\u65f6\u7684\u521d\u59cb\u7a97\u53e3\u5927\u5c0f &#8211;&gt;<br \/>\n&lt;meta name=\u201dmsapplication-window\u201d content=\u201dwidth=1024;height=768\u2033 &gt;<\/p>\n<p>&lt;!&#8211; \u5b9a\u4e49\u56fa\u5b9a\u7f51\u7ad9\u6d4f\u89c8\u5668\u7a97\u53e3\u4e2d\u7684\u201c\u540e\u9000\u201d\u548c\u201c\u524d\u8fdb\u201d\u6309\u94ae\u7684\u81ea\u5b9a\u4e49\u989c\u8272 &#8211;&gt;<br \/>\n&lt;meta name=\u201dmsapplication-navbutton-color\u201d content=\u201d#FF3300\u2033 &gt;<\/p>\n<p>&lt;!&#8211; \u70b9\u51fb\u56fe\u6807\u540e\u663e\u793a\u4e00\u4e2a\u76f8\u5173\u7f51\u7ad9\u7684\u5217\u8868 &#8211;&gt;<br \/>\n&lt;meta name=&#8221;msapplication-task&#8221;<br \/>\ncontent=&#8221;name=\u4e24\u4e2a\u61a8\u61a8;action-uri=http:\/\/www.\u61a8\u61a8.com;icon-uri=..\/static\/\u61a8\u61a8.ico&#8221; \/&gt;<\/p>\n<p>&lt;!&#8211; \u5728\u8df3\u8f6c\u5217\u8868\u83dc\u5355\u4e2d\u653e\u7f6e\u4e00\u6761\u5206\u9694\u7ebf &#8211;&gt;<br \/>\n&lt;meta name=\u201dmsapplication-task-separator\u201d content=\u201dForum Tasks\u201d \/&gt;<\/p>\n<p>&lt;!&#8211; \u7f51\u7ad9\u56fa\u5b9a\u5728\u5f00\u59cb\u5c4f\u5e55\u4e0a\u7684\u4e2a\u6027\u5316\u81ea\u5b9a\u4e49\u8272\u5757icon\u548c\u80cc\u666f\u56fe\u7247 &#8211;&gt;<br \/>\n&lt;meta name=\u201dmsapplication-TileImage\u201d content=\u201dtile.png\u201d&gt;<\/p>\n<p>&lt;!&#8211; \u540c\u524d\u4e00\u4e2a\u5143\u6570\u636emsapplication-TileImage\u7c7b\u4f3c\uff0c\u8fd9\u4e2a\u529f\u80fd\u662f\u7528\u6765\u8bbe\u7f6e\u989c\u8272\u503c &#8211;&gt;<br \/>\n&lt;meta name=\u201dmsapplication-TileColor\u201d content=\u201d#ef0303\u2033&gt;<\/p>\n<p>&lt;!&#8211; IE\u663e\u793a\u4e00\u4e2a\u83dc\u5355\u8ba9\u7528\u6237\u53ef\u4ee5\u5feb\u901f\u83b7\u5f97\u4e00\u4e2a\u5e94\u7528 &#8211;&gt;<br \/>\n&lt;meta name=&#8221;msApplication-ID&#8221; content=&#8221;App&#8221;\/&gt;<\/p>\n<p>&lt;!&#8211; Microsoft Visual Studio\u521b\u5efa\u7684\u7528\u4e8e\u6807\u8bc6\u5e94\u7528\u7684Package family &#8211;&gt;<br \/>\n&lt;meta name=&#8221;msApplication-PackageFamilyName&#8221;<br \/>\ncontent=&#8221;ZeptoLabUKLimited.CutTheRope_sq9zxnwrk84pj&#8221;\/&gt;<\/p>\n<p>&lt;!&#8211; \u8981\u4f20\u9012\u7ed9\u4f60\u7684\u5e94\u7528\u7684\u5b57\u7b26\u4e32 &#8211;&gt;<br \/>\n&lt;meta name=&#8221;msApplication-Arguments&#8221; content=&#8221;http:\/\/\u4e24\u4e2a\u61a8\u61a8.cn&#8221;&gt;<\/p>\n<p>&lt;!&#8211; \u5f3a\u5236\u8981\u6c42\u5e94\u7528\u7684\u6700\u5c0f\u7248\u672c\u53f7,\u7528\u6237\u4f7f\u7528\u4e00\u4e2a\u66f4\u65e7\u7684\u7248\u672c\uff0c\u4f1a\u88ab\u8981\u6c42\u5230\u5546\u5e97\u53bb\u66f4\u65b0 &#8211;&gt;<br \/>\n&lt;meta name=&#8221;msApplication-MinVersion&#8221; content=&#8221;V3.0&#8243;\/&gt;<\/p>\n<p>&lt;!&#8211; \u963b\u6b62\u5728\u7528\u6237\u6ca1\u88c5\u5e94\u7528\u7684\u60c5\u51b5\u4e0b\u63d0\u793a\u5b89\u88c5\u5e94\u7528 &#8211;&gt;<br \/>\n&lt;meta name=\u201dmsApplication-OptOut\u201d content=\u201dinstall\u201d\/&gt;<\/p>\n<p>&lt;!&#8211; \u963b\u6b62\u5728\u7528\u6237\u5df2\u5b89\u88c5\u5e94\u7528\u7684\u60c5\u51b5\u4e0b\u63d0\u793a\u7528\u6237\u5207\u6362\u5230\u5e94\u7528 &#8211;&gt;<br \/>\n&lt;meta name=\u201dmsApplication-OptOut\u201d content=&#8221;switch&#8221;&gt;<\/p>\n<p>&lt;!&#8211; \u963b\u6b62\u4ee5\u4e0a\u4e24\u79cd\u60c5\u51b5\u7684\u63d0\u793a &#8211;&gt;<br \/>\n&lt;meta name=&#8221;msApplication-OptOut&#8221; content=&#8221;both&#8221;&gt;<\/p>\n<p>&lt;!&#8211; \u8bbf\u95ee\u8005\u5c06\u770b\u4e0d\u5230\u67d0\u4e9b\u76f8\u5173\u8fde\u63a5 &#8211;&gt;<br \/>\n&lt;meta name=\u201dMSSmartTagsPreventParsing\u201d content=\u201dTrue\u201d &gt;<\/p>\n<p>&lt;!&#8211; \u6253\u5f00xp \u7684\u84dd\u8272\u7acb\u4f53\u6309\u94ae\u7cfb\u7edf\u663e\u793a &#8211;&gt;<br \/>\n&lt;meta http-equiv=\u201dMSThemeCompatible\u201d content=\u201dYes\u201d &gt;<\/p>\n<p>&lt;!\u2014\u5173\u95edxp \u7684\u84dd\u8272\u7acb\u4f53\u6309\u94ae\u7cfb\u7edf\u663e\u793a &#8211;&gt;<br \/>\n&lt;meta http-equiv=\u201dMSThemeCompatible\u201d content=\u201dno\u201d &gt;<\/p>\n<p>&lt;!&#8211; \u8f6e\u8be2\u201c\u5f00\u59cb\u201d\u5c4f\u5e55\u4e2d\u56fa\u5b9a\u56fe\u5757\u7684\u66f4\u65b0 &#8211;&gt;<br \/>\n&lt;meta name=\u201dmsapplication-badge\u201d<br \/>\ncontent=\u201dfrequency=30; polling-uri=http:\/\/mysite.com\/id45453245\/polling.xml\u201d\/&gt;<\/p>\n<p>&lt;!&#8211; \u5b9a\u4e49\u6587\u672c\u5b57\u7b26\u7f16\u7801 &#8211;&gt;<br \/>\n&lt;meta charset=&#8221;utf-8&#8243; &gt;<\/p>\n<p>&lt;!\u2014\u5b9a\u4e49\u6587\u672c\u5b57\u7b26\u7f16\u7801 &#8211;&gt;<br \/>\n&lt;meta http-equiv=&#8221;content-type&#8221; content=&#8221;text\/html; charset=utf-8&#8243;&gt;<\/p>\n<p>&lt;!&#8211; \u89c4\u5b9a\u8981\u4f7f\u7528\u7684\u9884\u5b9a\u4e49\u7684\u6837\u5f0f\u8868 &#8211;&gt;<br \/>\n&lt;meta http-equiv=&#8221;default-style&#8221; content=&#8221;the document&#8217;s preferred stylesheet&#8221;&gt;<br \/>\n\u4e0a\u9762 content \u5c5e\u6027\u7684\u503c\u5fc5\u987b\u5339\u914d\u540c\u4e00\u6587\u6863\u4e2d\u7684\u4e00\u4e2a link \u5143\u7d20\u4e0a\u7684 title \u5c5e\u6027\u7684\u503c\uff0c\u6216\u8005\u5fc5\u987b\u5339\u914d\u540c\u4e00\u6587\u6863\u4e2d\u7684\u4e00\u4e2a style \u5143\u7d20\u4e0a\u7684 title \u5c5e\u6027\u7684\u503c<\/p>\n<p>&lt;!&#8211; \u6bcf30\u79d2\u5237\u65b0\u9875\u9762 &#8211;&gt;<br \/>\n&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;30&#8243;&gt;<\/p>\n<p>&lt;!&#8211; 5\u79d2\u949f\u540e\u5c31\u4f1a\u8df3\u8f6c\u5230\u6307\u5b9a\u9875\u9762 &#8211;&gt;<br \/>\n&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;5;url=http:\/\/baidu.com &#8221; &gt;<\/p>\n<p>&lt;!&#8211; \u7981\u6b62\u767e\u5ea6\u7684\u81ea\u52a8\u8f6c\u7801 &#8211;&gt;<br \/>\n&lt;meta http-equiv=&#8221;Cache-Control&#8221; content=&#8221;no-siteapp&#8221; &gt;<\/p>\n<p>&lt;!&#8211; \u9488\u5bf9\u624b\u6301\u8bbe\u5907\u4f18\u5316\uff0c\u4e3b\u8981\u662f\u9488\u5bf9\u4e00\u4e9b\u8001\u7684\u4e0d\u8bc6\u522bviewport\u7684\u6d4f\u89c8\u5668\uff0c\u6bd4\u5982\u9ed1\u8393 &#8211;&gt;<br \/>\n&lt;meta name=&#8221;HandheldFriendly&#8221; content=&#8221;true&#8221;&gt;<\/p>\n<p>&lt;!&#8211; \u5fae\u8f6f\u7684\u8001\u5f0f\u6d4f\u89c8\u5668 &#8211;&gt;<br \/>\n&lt;meta name=&#8221;MobileOptimized&#8221; content=&#8221;320&#8243;&gt;<\/p>\n<p>&lt;!&#8211; uc\u5f3a\u5236\u7ad6\u5c4f &#8211;&gt;<br \/>\n&lt;meta name=&#8221;screen-orientation&#8221; content=&#8221;portrait&#8221;&gt;<\/p>\n<p>&lt;!&#8211; QQ\u5f3a\u5236\u7ad6\u5c4f &#8211;&gt;<br \/>\n&lt;meta name=&#8221;x5-orientation&#8221; content=&#8221;portrait&#8221;&gt;<\/p>\n<p>&lt;!&#8211; UC\u5f3a\u5236\u5168\u5c4f &#8211;&gt;<br \/>\n&lt;meta name=&#8221;full-screen&#8221; content=&#8221;yes&#8221;&gt;<\/p>\n<p>&lt;!&#8211; QQ\u5f3a\u5236\u5168\u5c4f &#8211;&gt;<br \/>\n&lt;meta name=&#8221;x5-fullscreen&#8221; content=&#8221;true&#8221;&gt;<\/p>\n<p>&lt;!&#8211; UC\u5e94\u7528\u6a21\u5f0f &#8211;&gt;<br \/>\n&lt;meta name=&#8221;browsermode&#8221; content=&#8221;application&#8221;&gt;<\/p>\n<p>&lt;!&#8211; QQ\u5e94\u7528\u6a21\u5f0f &#8211;&gt;<br \/>\n&lt;meta name=&#8221;x5-page-mode&#8221; content=&#8221;app&#8221;&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>referrer \u4fe1\u606f<\/p>\n<p>referrer \u6709\u5982\u4e0b\u53d6\u503c<\/p>\n<p>no-referrer \u8bf7\u6c42\u7684\u65f6\u5019\uff0c\u4e0d\u5e26 referer \u8bf7\u6c42\u5934<\/p>\n<p>no-referrer-when-downgrade \u8fd9\u4e2a\u662f\u9ed8\u8ba4\u7b56\u7565\uff0c\u6574\u4e2a URL(origin\u3001path\u3001queryString) \u90fd\u4f1a\u4f5c\u4e3a referrer \u53d1\u9001\uff0c\u4f46\u5f53\u5b89\u5168\u534f\u8bae\u964d\u7ea7\uff0c\u6bd4\u5982\u4ece https -&gt; http \u7684\u65f6\u5019\uff0c\u4e0d\u4f1a\u53d1\u9001\u3002<\/p>\n<p>origin \u53ea\u53d1\u9001 URL \u4e2d\u7684 origin \u4fe1\u606f\uff0c\u6bd4\u5982\u7f51\u5740\u4e3ahttps:\/\/example.com\/page.html\uff0c\u8bf7\u6c42\u5934\u4e2d\u4e3areferer: https:\/\/example.com\/\u3002<\/p>\n<p>origin-when-cross-origin \u540c\u6e90\u8bf7\u6c42\uff0c\u53d1\u9001\u6574\u4e2a URL\uff0c\u8de8\u57df\u65f6\u5019\u548c origin \u7684\u60c5\u51b5\u4e00\u6837\u3002<\/p>\n<p>same-origin \u4ec5\u540c\u6e90\u60c5\u51b5\u53d1\u9001 referer<\/p>\n<p>strict-origin \u7c7b\u4f3c origin\uff0c\u4f46\u534f\u8bae\u4e0d\u80fd\u964d\u7ea7\uff0c\u6bd4\u5982\u4ecehttp:\/\/a.com\u8bf7\u6c42http:\/\/b.com\u6216\u8005https:\/\/&#8230;\u4f1a\u643a\u5e26 referer\u3002<\/p>\n<p>strict-origin-when-cross-origin \u4e0e origin-when-cross-origin \u7c7b\u4f3c\uff0c\u4f46\u534f\u8bae\u4e0d\u80fd\u964d\u7ea7\u3002<\/p>\n<p>unsafe-url \u4efb\u4f55\u60c5\u51b5\u90fd\u53d1\u9001\u5b8c\u6574\u7684 URL\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>IE \u6e32\u67d3\u6a21\u5f0f<\/p>\n<p>&lt;meta http-equiv=&#8221;X-UA-Compatible&#8221; content=&#8221;IE=edge,chrome=1&#8243; \/&gt;<\/p>\n<p>&lt;meta name=&#8221;renderer&#8221; content=&#8221;webkit&#8221;&gt;\u6765\u542f\u7528360\u6d4f\u89c8\u5668\u3001QQ\u6d4f\u89c8\u5668\u7684\u6781\u901f\u6a21\u5f0f\u6838<\/p>\n<p>&lt;meta name=&#8221;force-rendering&#8221; content=&#8221;webkit&#8221;\/&gt;\uff0c\u8ba9\u5176\u4ed6\u53cc\u6838\u6d4f\u89c8\u5668\u5207\u6362\u4e3a\u6781\u901f\u6a21\u5f0f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u89c6\u7a97\u8bbe\u7f6e<\/p>\n<p>&lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no&#8221;\/&gt;\u4e00\u822c\u5728\u79fb\u52a8\u7aef\u4e2d\u4f7f\u7528\uff0cwidth=device-width \u8bbe\u7f6e\u7f51\u9875\u7684\u5bbd\u5ea6\uff08viewport\uff09\u548c\u8bbe\u5907\u7684\u5bbd\u5ea6\u4e00\u6837\uff0c\u8fd9\u6837\u6a2a\u5411\u5c31\u4e0d\u4f1a\u51fa\u73b0\u6eda\u52a8\u6761\uff0c\u7528\u6237\u6d4f\u89c8\u4f53\u9a8c\u4f1a\u5927\u5e45\u63d0\u5347\uff1b\u540e\u9762\u7684\u51e0\u4e2a\u8bbe\u7f6e\u4e0d\u5141\u8bb8\u7528\u6237\u624b\u52a8\u7f29\u653e\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u7535\u8bdd\u68c0\u6d4b<\/p>\n<p>&lt;meta name=&#8221;format-detection&#8221; &#8230;&gt;\u6765\u7981\u6b62\u81ea\u52a8\u8bc6\u522b\u7535\u8bdd\u3001\u65e5\u671f\u3001\u5730\u5740\uff0cios \u4e0a\u9762\uff0c\u81ea\u52a8\u5c06\u4e00\u4e32\u6570\u5b57\u52a0\u4e86\u94fe\u63a5\uff0c\u70b9\u51fb\u4f1a\u8fdb\u884c\u62e8\u53f7\uff0c\u52a0\u5165\u4e0b\u9762\u7b2c\u4e00\u4e2a\u7981\u6b62\u5373\u53ef\u3002<br \/>\n&lt;meta name=&#8221;format-detection&#8221; content=&#8221;telephone=no&#8221;&gt;<br \/>\n&lt;meta name=&#8221;format-detection&#8221; content=&#8221;date=no&#8221;&gt;<br \/>\n&lt;meta name=&#8221;format-detection&#8221; content=&#8221;address=no&#8221;&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>The Open Graph Protocol\uff08\u5f00\u653e\u56fe\u8c31\u534f\u8bae\uff09<\/p>\n<p>&lt;meta property=&#8221;og:title&#8221; content=&#8221;\u5929\u732b&#8221;&gt;<br \/>\n&lt;meta property=&#8221;og:type&#8221; content=&#8221;website&#8221;&gt;<br \/>\n&lt;meta property=&#8221;og:url&#8221; content=&#8221; https:\/\/www.tmall.com\/&#8221;&gt;<br \/>\n&lt;meta property=&#8221;og:image&#8221; content=&#8221; https:\/\/img.alicdn.com\/480-260.png&#8221;&gt;<\/p>\n<p>Open Graph Protocol\uff0c\u662f Facebook \u5236\u8ba2\u7684\u4e00\u4e2a\u793e\u4ea4\u7f51\u7edc\u5206\u4eab\u534f\u8bae\uff0c\u6709\u4e86\u4e0a\u9762\u7684\u5185\u5bb9\uff0c\u5206\u4eab\u4e4b\u540e\u4f1a\u5e26\u4e0a\u66f4\u591a\u7684\u4fe1\u606f\u3001\u5c55\u793a\u56fe\u7247\u7b49\uff0c\u8ba9\u5206\u4eab\u7684\u5185\u5bb9\u66f4\u5438\u5f15\u4eba\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>robots SEO<\/p>\n<p>&lt;meta content=&#8221;noodp&#8221; name=&#8221;robots&#8221;&gt;\u8ddf\u641c\u7d22\u5f15\u64ce\u722c\u53d6\u673a\u5668\u4eba\u6709\u5173\u3002<br \/>\nmeta robots \u53ef\u4ee5\u53d6\u5982\u4e0b\u7684\u503c<\/p>\n<p>index \u5141\u8bb8\u5c06\u8be5\u7f51\u9875\u5f55\u5165\u641c\u7d22\u5f15\u64ce\u7d22\u5f15\u3002<\/p>\n<p>follow \u5141\u8bb8\u641c\u7d22\u5f15\u64ce\u6293\u53d6\u5f53\u524d\u9875\u9762\u4e0a\u6240\u6709\u7684\u94fe\u63a5\u3002<\/p>\n<p>noindex \u7981\u6b62\u5c06\u8be5\u7f51\u9875\u5f55\u5165\u641c\u7d22\u5f15\u64ce\u7d22\u5f15\u3002<\/p>\n<p>nofollow \u7981\u6b62\u641c\u7d22\u5f15\u64ce\u6293\u53d6\u5f53\u524d\u9875\u9762\u4e0a\u7684\u94fe\u63a5\u3002<\/p>\n<p>noarchive \u5728\u641c\u7d22\u7ed3\u679c\u4e2d\u4e0d\u4fdd\u5b58\u5f53\u524d\u9875\u9762\u7684\u5feb\u7167<\/p>\n<p>all \u76f8\u5f53\u4e8eindex, follow\uff0c\u6b64\u503c\u662f\u9ed8\u8ba4\u503c\u3002<\/p>\n<p>noodp \u4e0d\u4f7f\u7528\u5f00\u653e\u76ee\u5f55\u4e2d\u7684\u7f51\u9875\u6458\u8981\u63cf\u8ff0\u3002NO Open Directory Project<\/p>\n<p>noydir \u4e0d\u4f7f\u7528\u96c5\u864e\u5206\u7c7b\u76ee\u5f55\u4e2d\u7684\u7f51\u9875\u6458\u8981\u3002NO Yahoo Directory<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u8bbe\u5907\u50cf\u7d20\uff08device pixels\uff09\uff1a\u7269\u7406\u50cf\u7d20\uff0c\u663e\u793a\u5668\u7684\u6700\u5c0f\u7269\u7406\u5355\u4f4d\u3002\u8fd9\u91cc\u7684\u4e00\u4e2a\u50cf\u7d20\uff0c\u5e76\u4e0d\u4e00\u5b9a\u662f\u4e00\u4e2a\u5c0f\u6b63\u65b9\u5f62\u533a\u5757\uff0c\u4e5f\u6ca1\u6709\u6807\u51c6\u7684\u5bbd\u9ad8\uff0c\u53ea\u662f\u7528\u4e8e\u663e\u793a\u4e30\u5bcc\u8272\u5f69\u7684\u4e00\u4e2a\u70b9\u800c\u5df2\u3002<\/p>\n<p>\u8bbe\u5907\u72ec\u7acb\u50cf\u7d20\uff08device independent pixels\uff09\uff1a\u72ec\u7acb\u4e8e\u8bbe\u5907\u7684\u50cf\u7d20\u3002\u6709\u4e00\u4e2a\u975e\u4e25\u8c28\u7684\u8bf4\u6cd5\uff0c\u5206\u8fa8\u7387\u6307\u7684\u5c31\u662f\u8bbe\u5907\u72ec\u7acb\u50cf\u7d20\u3002\u53ef\u4ee5\u901a\u8fc7 window.screen.width \/ window.screen.height \u67e5\u770b\u3002\u5e73\u65f6\u6211\u4eec\u6240\u8bf4\u7684 iPhone X \u903b\u8f91\u5206\u8fa8\u7387 375 \u00d7 812 \u6307\u7684\u5c31\u662f\u8bbe\u5907\u72ec\u7acb\u50cf\u7d20\u3002chrome \u68c0\u67e5\u5143\u7d20\u6a21\u62df\u8c03\u8bd5\u624b\u673a\u8bbe\u5907\u65f6\u663e\u793a\u5982 375&#215;667 \u548c 320&#215;480 \u90fd\u662f\u8bbe\u5907\u72ec\u7acb\u50cf\u7d20\u3002<\/p>\n<p>\u50cf\u7d20\u5206\u8fa8\u7387\uff1a\u4ee5\u624b\u673a\u5c4f\u5e55\u4e3a\u4f8b\uff0ciPhone X \u50cf\u7d20\u5206\u8fa8\u7387\u4e3a 1125 \u00d7 2436\uff0c\u662f\u6307\u5c4f\u5e55\u6a2a\u5411\u80fd\u663e\u793a 1125 \u4e2a\u7269\u7406\u50cf\u7d20\u70b9\uff0c\u7eb5\u5411\u80fd\u663e\u793a 2436 \u4e2a\u7269\u7406\u50cf\u7d20\u70b9\u3002\u901a\u5e38\u6240\u8bf4\u7684 4K \u663e\u793a\u5c4f\u6307\u7684\u662f 4096 \u00d7 2160\u3002<\/p>\n<p>PPI\uff08pic per inch\uff09\uff1a\u6bcf\u82f1\u5bf8\u7684\u7269\u7406\u50cf\u7d20\u6570\u3002\u4ee5\u5c3a\u5bf8\u4e3a 5.8 \u82f1\u5bf8\uff08\u5c4f\u5e55\u5bf9\u89d2\u7ebf\u957f\u5ea6\uff09\u3001\u5206\u8fa8\u7387\u4e3a 1125 \u00d7 2436 \u7684 iPhone X \u4e3a\u4f8b\uff0c ppi = Math.sqrt(1125*1125 + 2436*2436) \/ 5.8\uff0c\u503c\u4e3a 463 ppi\u3002<\/p>\n<p>CSS \u50cf\u7d20\uff1a\u6d4f\u89c8\u5668\u4f7f\u7528\u7684\u5355\u4f4d\uff0c\u7528\u6765\u7cbe\u786e\u5ea6\u91cf\u7f51\u9875\u4e0a\u7684\u5185\u5bb9\uff0c\u5982\uff1adiv { width: 100px; }\u3002\u5728\u4e00\u822c\u60c5\u51b5\u4e0b(\u9875\u9762\u7f29\u653e\u6bd4\u4e3a 1)\uff0c1 \u4e2a CSS \u50cf\u7d20\u7b49\u4e8e 1 \u4e2a\u8bbe\u5907\u72ec\u7acb\u50cf\u7d20\u3002<\/p>\n<p>devicePixelRatio\uff1a\u8bbe\u5907\u7269\u7406\u50cf\u7d20\u548c\u8bbe\u5907\u72ec\u7acb\u50cf\u7d20\u7684\u6bd4\u4f8b\u3002window.devicePixelRatio = \u7269\u7406\u50cf\u7d20 \/ \u8bbe\u5907\u72ec\u7acb\u50cf\u7d20\u3002\u5f53\u8bbe\u5907\u50cf\u7d20\u6bd4\u7684\u6bd4\u7387\u4e0d\u4e3a 1 \u65f6\uff0cCSS \u50cf\u7d20\u548c\u8bbe\u5907\u72ec\u7acb\u50cf\u7d20\u4e0d\u518d\u5bf9\u5e94\u3002\u6240\u4ee5\u5982\u679c\u9875\u9762\u653e\u5927 200%\uff0c1 \u4e2a CSS \u50cf\u7d20\u7b49\u4e8e 4 \u4e2a\u8bbe\u5907\u72ec\u7acb\u50cf\u7d20\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>meta viewport<br \/>\n\u8981\u5b9e\u73b0 ideal viewport \uff0c\u9700\u8981\u7528\u5230 meta \u6807\u7b7e\u3002<br \/>\n\u5728 head \u6807\u7b7e\u4e2d\u52a0\u5165 viewport \u7684 meta \u6807\u7b7e\uff1a<br \/>\n&lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=0&#8243;&gt;<br \/>\n\u8be5meta\u6807\u7b7e\u7684\u4f5c\u7528\u662f\u8ba9\u5f53\u524dviewport\u7684\u5bbd\u5ea6\u7b49\u4e8e\u8bbe\u5907\u7684\u5bbd\u5ea6\uff0c\u540c\u65f6\u4e0d\u5141\u8bb8\u7528\u6237\u624b\u52a8\u7f29\u653e\u3002\u5f53\u7136maximum-scale=1.0, user-scalable=0\u4e0d\u662f\u5fc5\u9700\u7684\uff0c\u662f\u5426\u5141\u8bb8\u7528\u6237\u624b\u52a8\u64ad\u653e\u6839\u636e\u7f51\u7ad9\u7684\u9700\u6c42\u6765\u5b9a\uff0c\u4f46\u628awidth\u8bbe\u4e3awidth-device\u57fa\u672c\u662f\u5fc5\u987b\u7684\uff0c\u8fd9\u6837\u80fd\u4fdd\u8bc1\u4e0d\u4f1a\u51fa\u73b0\u6a2a\u5411\u6eda\u52a8\u6761\u3002<\/p>\n<p>meta viewport \u7684\u516d\u4e2a\u5c5e\u6027<br \/>\nwidth\uff1a\uff0c\u53ef\u4ee5\u7ed9\u5b83\u6307\u5b9a\u4e00\u4e2a\u503c(\u6b63\u6574\u6570)\uff0c\u6216\u8005\u662f\u4e00\u4e2a\u7279\u6b8a\u7684\u503c(\u5982device-width\uff09<br \/>\ninitial-scale\uff1a\u521d\u59cb\u7f29\u653e\u6bd4\u4f8b\uff0c\u5373\u5f53\u9875\u9762\u7b2c\u4e00\u6b21\u52a0\u8f7d\u65f6\u7684\u7f29\u653e\u6bd4\u4f8b\uff0c\u4e3a\u4e00\u4e2a\u6570\u5b57(\u53ef\u4ee5\u5e26\u5c0f\u6570)\uff1b<br \/>\nmaximum-scale\uff1a\u5141\u8bb8\u7528\u6237\u7f29\u653e\u5230\u7684\u6700\u5927\u6bd4\u4f8b\uff0c\u4e3a\u4e00\u4e2a\u6570\u5b57(\u53ef\u4ee5\u5e26\u5c0f\u6570)\uff1b<br \/>\nminimum-scale\uff1a\u5141\u8bb8\u7528\u6237\u7f29\u653e\u5230\u7684\u6700\u5c0f\u6bd4\u4f8b\uff0c\u4e3a\u4e00\u4e2a\u6570\u5b57(\u53ef\u4ee5\u5e26\u5c0f\u6570)\uff1b<br \/>\nuser-scalable\uff1a\u662f\u5426\u5141\u8bb8\u7528\u6237\u624b\u52a8\u7f29\u653e\uff0c\u503c\u4e3a &#8220;no&#8221;(\u4e0d\u5141\u8bb8) \u6216 &#8220;yes&#8221;(\u5141\u8bb8)\uff1b<br \/>\nheight\uff1a\u4e0e width \u76f8\u5bf9\u5e94(\u5f88\u5c11\u4f7f\u7528)\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u77e5\u9053\u8bbe\u5907\u7684\u7406\u60f3\u5bbd\u5ea6\u5c31\u7528\u7279\u6b8a\u503c device-width\uff0c\u540c\u65f6 initial-scale=1 \u6765\u7684\u5230\u4e00\u4e2a\u7406\u60f3\u7684 viewport (ideal viewport)\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;meta&gt;\u5143\u7d20\u63d0\u4f9b\u6709\u5173\u9875\u9762\u7684\u5143\u4fe1\u606f\uff0c\u653e\u5728\u6587\u6863\u7684 &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/posts\/556"}],"collection":[{"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/flighhai.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=556"}],"version-history":[{"count":5,"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions"}],"predecessor-version":[{"id":561,"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions\/561"}],"wp:attachment":[{"href":"https:\/\/flighhai.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flighhai.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flighhai.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}