{"id":7091,"date":"2024-04-15T20:01:01","date_gmt":"2024-04-15T12:01:01","guid":{"rendered":""},"modified":"2024-04-15T20:01:01","modified_gmt":"2024-04-15T12:01:01","slug":"CSS\u4e2dcalc, support, media\u5404\u81ea\u7684\u542b\u4e49\u53ca\u7528\u6cd5\uff1f","status":"publish","type":"post","link":"https:\/\/mushiming.com\/7091.html","title":{"rendered":"CSS\u4e2dcalc, support, media\u5404\u81ea\u7684\u542b\u4e49\u53ca\u7528\u6cd5\uff1f"},"content":{"rendered":"
\u4e86\u89e3\u5230\u4e86@support\u7684\u8fd9\u4e2a\u5c5e\u6027\uff0c\u8bb0\u5f55\u4e0b\uff1a
CSS\u4e2d\u7684@support\u4e3b\u8981\u662f\u7528\u4e8e\u68c0\u6d4b\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301CSS\u7684\u67d0\u4e2a\u5c5e\u6027\uff0c\u5176\u5b9e\u5c31\u662f\u6761\u4ef6\u5224\u65ad\uff0c\u5982\u679c\u652f\u6301\u67d0\u4e2a\u5c5e\u6027\uff0c\u4f60\u53ef\u4ee5\u5199\u4e00\u5957\u6837\u5f0f\uff0c\u5982\u679c\u4e0d\u652f\u6301\u67d0\u4e2a\u5c5e\u6027\uff0c\u4f60\u4e5f\u53ef\u4ee5\u63d0\u4f9b\u53e6\u5916\u4e00\u5957\u6837\u5f0f\u4f5c\u4e3a\u66ff\u8865\u3002\u4f46\u662f\u8fd9\u91cc\u6709\u4e00\u70b9\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a@support\u5bf9\u4e8e\u6d4f\u89c8\u5668\u7684\u7248\u672c\u4e5f\u662f\u6709\u8981\u6c42\u7684\uff0c\u4e0d\u662f\u8bf4\u6240\u6709\u7684\u6d4f\u89c8\u5668\u4ee5\u53ca\u5176\u6240\u6709\u7684\u7248\u672c\u90fd\u662f\u652f\u6301@support\u7684\u3002
\u4e0b\u9762\u5c31\u6765\u8bf4\u4e00\u4e0b@support\u7684\u7528\u6cd5\uff1a
1.\u57fa\u672c\u8bed\u6cd5\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<\/p>\n
@support(prop:value){ \/*\u81ea\u5df1\u7684\u6837\u5f0f*\/ } @supports (display: flex) { div { display: flex; }}<\/code><\/pre>\n<\/p>\n\u6ce8\u91ca\uff1a\u5982\u679c\u6d4f\u89c8\u5668\u652f\u6301display:flex\u5c5e\u6027\u7684\u8bdd\uff0c\u90a3\u4e48div\u7684\u6837\u5f0f\u5c31\u662fdisplay:flex<\/p>\n
2.\u903b\u8f91\u64cd\u4f5c\u7b26\uff1a\u201cnot\u201d \u7684\u7528\u6cd5<\/p>\n<\/p>\n
@supports not (display: flex) { div { float: right; }}<\/code><\/pre>\n<\/p>\n\u6ce8\u91ca\uff1a\u5982\u679c\u6d4f\u89c8\u5668\u4e0d\u652f\u6301display:flex\u5c5e\u6027\u7684\u8bdd\uff0c\u90a3\u4e48div\u7684\u6837\u5f0f\u5c31\u662fdisplay:right<\/p>\n
3.\u903b\u8f91\u64cd\u4f5c\u7b26\uff1a\u201cand\u201d\u7684\u7528\u6cd5<\/p>\n<\/p>\n
@supports (display: flex) and ( box-shadow: 2px 2px 2px black ) { \/*\u81ea\u5df1\u7684\u6837\u5f0f*\/ }<\/code><\/pre>\n<\/p>\n\u6ce8\u91ca\uff1a\u5982\u679c\u6d4f\u89c8\u5668\u652f\u6301display:flex\u548cbox-shadow\u7684\u5c5e\u6027\uff0c\u5c31\u6267\u884c\u91cc\u9762\u81ea\u5df1\u7684\u6837\u5f0f<\/p>\n
4.\u903b\u8f91\u64cd\u4f5c\u7b26\uff1a\u201cor\u201d \u7684\u7528\u6cd5<\/p>\n<\/p>\n
@supports (display: -webkit-flex) or (display: -moz-flex) or(display: flex) { \/*\u81ea\u5df1\u7684\u6837\u5f0f *\/ }<\/code><\/pre>\n<\/p>\n\u6ce8\u91ca\uff1a\u5982\u679c\u6d4f\u89c8\u5668\u652f\u6301\u5176\u4e2d\u4e00\u4e2a\u5c31\u53ef\u4ee5\u6267\u884c\u91cc\u9762\u81ea\u5df1\u7684\u6837\u5f0f<\/p>\n
5.\u6df7\u7528\u7684\u4f8b\u5b50
\u201cor\u201d\u548c\u201cand\u201d\u6df7\u7528\uff0c\u5728@supports\u4e2d\u201cor\u201d\u548c\u201cand\u201d\u6df7\u7528\u65f6\uff0c\u5fc5\u987b\u4f7f\u7528\u62ec\u53f7\uff08\uff09\u6765\u533a\u5206\u5176\u4f18\u5148\u7ea7<\/p>\n<\/p>\n
@supports ((transition-property: color) or (animation-name: foo)) and (transform: rotate(10deg)) { \/*\u81ea\u5df1\u7684\u6837\u5f0f *\/ } \n@supports (transition-property: color) or ((animation-name: foo) and (transform: rotate(10deg))) { \/*\u81ea\u5df1\u7684\u6837\u5f0f *\/ }<\/code><\/pre>\n<\/p>\n\u201cor\u201d\u3001\u201cand\u201d \u548c \u201cnot\u201d \u6df7\u7528<\/p>\n<\/p>\n
@supports (display: grid) and (not (transition-property: color) or (animation-name: foo)){ \/*\u81ea\u5df1\u7684\u6837\u5f0f *\/ }<\/code><\/pre>\n<\/p>\n\u4e8c calc<\/h3>\n\u5b9a\u4e49\u4e0e\u7528\u6cd5<\/strong><\/h4>\ncalc() \u51fd\u6570\u7528\u4e8e\u52a8\u6001\u8ba1\u7b97\u957f\u5ea6\u503c\u3002<\/p>\n
\u25cf \u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd0\u7b97\u7b26\u524d\u540e\u90fd\u9700\u8981\u4fdd\u7559\u4e00\u4e2a\u7a7a\u683c\uff0c\u4f8b\u5982\uff1awidth: calc(100% - 10px)\uff1b<\/p>\n
\u25cf \u4efb\u4f55\u957f\u5ea6\u503c\u90fd\u53ef\u4ee5\u4f7f\u7528calc()\u51fd\u6570\u8fdb\u884c\u8ba1\u7b97\uff1b<\/p>\n
\u25cf calc()\u51fd\u6570\u652f\u6301 \"+\", \"-\", \"*\", \"\/\" \u8fd0\u7b97\uff1b<\/p>\n
\u25cf calc()\u51fd\u6570\u4f7f\u7528\u6807\u51c6\u7684\u6570\u5b66\u8fd0\u7b97\u4f18\u5148\u7ea7\u89c4\u5219\uff1b<\/p>\n
CSS \u8bed\u6cd5<\/strong><\/p>\n\n\n\n\n1<\/p>\n<\/td>\n
\ncalc(expression)<\/code><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n\n\u503c <\/td>\n \u63cf\u8ff0<\/td>\n<\/tr>\n \nexpression <\/td>\n \u5fc5\u987b\uff0c\u4e00\u4e2a\u6570\u5b66\u8868\u8fbe\u5f0f\uff0c\u7ed3\u679c\u5c06\u91c7\u7528\u8fd0\u7b97\u540e\u7684\u8fd4\u56de\u503c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n width: calc(100% - 80px);<\/code><\/pre>\n<\/p>\n\u6ce8\uff1a calc\u517c\u5bb9\u89c1 calc()\u5728less\u4e2d\u7f16\u8bd1\u62a5\u9519 - echo\u4e36\u82e5\u68a6 - \u535a\u5ba2\u56ed<\/p>\n
\u4e8c media<\/h3>\n\u5b9a\u4e49\u548c\u4f7f\u7528<\/h4>\n
\u4f7f\u7528 @media \u67e5\u8be2\uff0c\u4f60\u53ef\u4ee5\u9488\u5bf9\u4e0d\u540c\u7684\u5a92\u4f53\u7c7b\u578b\u5b9a\u4e49\u4e0d\u540c\u7684\u6837\u5f0f\u3002<\/p>\n
@media \u53ef\u4ee5\u9488\u5bf9\u4e0d\u540c\u7684\u5c4f\u5e55\u5c3a\u5bf8\u8bbe\u7f6e\u4e0d\u540c\u7684\u6837\u5f0f\uff0c\u7279\u522b\u662f\u5982\u679c\u4f60\u9700\u8981\u8bbe\u7f6e\u8bbe\u8ba1\u54cd\u5e94\u5f0f\u7684\u9875\u9762\uff0c@media \u662f\u975e\u5e38\u6709\u7528\u7684\u3002<\/p>\n
\u5f53\u4f60\u91cd\u7f6e\u6d4f\u89c8\u5668\u5927\u5c0f\u7684\u8fc7\u7a0b\u4e2d\uff0c\u9875\u9762\u4e5f\u4f1a\u6839\u636e\u6d4f\u89c8\u5668\u7684\u5bbd\u5ea6\u548c\u9ad8\u5ea6\u91cd\u65b0\u6e32\u67d3\u9875\u9762\u3002<\/p>\n
CSS \u8bed\u6cd5<\/h4>\n<\/p>\n @media mediatype and|not|only (media feature) { CSS-Code; }<\/code><\/pre>\n<\/p>\n\u5b9e\u4f8b<\/h4>\n
\u4f7f\u7528 @media \u67e5\u8be2\u6765\u5236\u4f5c\u54cd\u5e94\u5f0f\u8bbe\u8ba1\uff1a<\/p>\n<\/p>\n
@media only screen and (max-width: 500px) { .gridmenu { width:100%; } .gridmain { width:100%; } .gridright { width:100%; } }<\/code><\/pre>\n<\/p>\n---------------------<\/p>\n<\/p>\n
CSS3 @media \u7528\u6cd5\u603b\u7ed3<\/h2>\n<\/p>\n\/\/\u8bed\u6cd5\uff1a\n@media mediatype and | not | only (media feature) { css-code; }\n\/\/\u4e5f\u53ef\u4ee5\u9488\u5bf9\u4e0d\u540c\u7684\u5a92\u4f53\u4f7f\u7528\u4e0d\u540c\u7684stylesheets: \n<link rel=\"stylesheet\" media=\"mediatype and|not|only (media feature)\" href=\"mystylesheet.css\">\n<\/code><\/pre>\n\u4e00\u3001\u9996\u5148\u662f<meta><\/code>\u6807\u7b7e<\/h4>\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\">\n<\/code><\/pre>\n\u8fd9\u6bb5\u4ee3\u7801\u7684\u51e0\u4e2a\u53c2\u6570\u89e3\u91ca\uff1a
width = device-width\uff1a\u5bbd\u5ea6\u7b49\u4e8e\u5f53\u524d\u8bbe\u5907\u7684\u5bbd\u5ea6
initial-scale\uff1a\u521d\u59cb\u7684\u7f29\u653e\u6bd4\u4f8b\uff08\u9ed8\u8ba4\u8bbe\u7f6e\u4e3a1.0\uff09
minimum-scale\uff1a\u5141\u8bb8\u7528\u6237\u7f29\u653e\u5230\u7684\u6700\u5c0f\u6bd4\u4f8b\uff08\u9ed8\u8ba4\u8bbe\u7f6e\u4e3a1.0\uff09
maximum-scale\uff1a\u5141\u8bb8\u7528\u6237\u7f29\u653e\u5230\u7684\u6700\u5927\u6bd4\u4f8b\uff08\u9ed8\u8ba4\u8bbe\u7f6e\u4e3a1.0\uff09
user-scalable\uff1a\u7528\u6237\u662f\u5426\u53ef\u4ee5\u624b\u52a8\u7f29\u653e\uff08\u9ed8\u8ba4\u8bbe\u7f6e\u4e3ano\uff0c\u56e0\u4e3a\u6211\u4eec\u4e0d\u5e0c\u671b\u7528\u6237\u653e\u5927\u7f29\u5c0f\u9875\u9762\uff09<\/p>\n
\u4e8c\u3001<head><\/code>\u6807\u7b7e\u4e2d\u5f15\u5165\uff08CSS2 media\uff09<\/h4>\n\u5176\u5b9e\u5e76\u4e0d\u662f\u53ea\u6709CSS3\u624d\u652f\u6301Media\u7684\u7528\u6cd5\uff0c\u65e9\u5728CSS2\u5f00\u59cb\u5c31\u5df2\u7ecf\u652f\u6301Media\uff0c\u5177\u4f53\u7528\u6cd5\uff0c\u5c31\u662f\u5728HTML\u9875\u9762\u7684head\u6807\u7b7e\u4e2d\u63d2\u5165\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n
\u4f8b\u5982\u6211\u4eec\u60f3\u77e5\u9053\u73b0\u5728\u7684\u79fb\u52a8\u8bbe\u5907\u662f\u4e0d\u662f\u7eb5\u5411\u653e\u7f6e\u7684\u663e\u793a\u5c4f\uff0c\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<\/p>\n
<link rel=\"stylesheet\" type=\"text\/css\" media=\"screen and (orientation:portrait)\" ;href=\"style.css\">\n<\/code><\/pre>\n\u9875\u9762\u5bbd\u5ea6\u5c0f\u4e8e960\u7684\u6267\u884c\u6307\u5b9a\u7684\u6837\u5f0f\u6587\u4ef6\uff1a<\/p>\n
<link rel=\"stylesheet\" type=\"text\/css\" media=\"screen and (max-width:960px)\" href=\"style.css\">\n<\/code><\/pre>\n\u65e2\u7136CSS2\u53ef\u4ee5\u5b9e\u73b0CSS\u7684\u8fd9\u4e2a\u6548\u679c\u4e3a\u4ec0\u4e48\u4e0d\u7528\u8fd9\u4e2a\u65b9\u6cd5\u5462\uff0c\u5f88\u591a\u4eba\u5e94\u8be5\u4f1a\u95ee\uff0c\u4f46\u662f\u4e0a\u9762\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u6700\u5927\u7684\u5f0a\u7aef\u662f\u4ed6\u4f1a\u589e\u52a0\u9875\u9762http\u7684\u8bf7\u6c42\u6b21\u6570\uff0c\u589e\u52a0\u4e86\u9875\u9762\u8d1f\u62c5\uff0c\u6211\u4eec\u7528CSS3\u628a\u6837\u5f0f\u90fd\u5199\u5728\u4e00\u4e2a\u6587\u4ef6\u91cc\u9762\u624d\u662f\u6700\u4f73\u7684\u65b9\u6cd5\u3002<\/p>\n
\u4e0b\u9762\u6765\u89e3\u91ca\u4e00\u4e0b\u9047\u5230\u51b2\u7a81\u65f6\u7684\u673a\u5236\uff1a<\/p>\n
<link rel=\"stylesheet\" href=\"styleA.css\" media=\"screen and (min-width: 800px)\"> \n<link rel=\"stylesheet\" href=\"styleB.css\" media=\"screen and (min-width: 600px) and (max-width: 800px)\"> \n<link rel=\"stylesheet\" href=\"styleC.css\" media=\"screen and (max-width: 600px)\"> \n<\/code><\/pre>\n\u4e0a\u9762\u5c06\u8bbe\u5907\u5206\u62103\u79cd\uff0c\u5206\u522b\u662f\u5bbd\u5ea6\u5927\u4e8e800px\u65f6\uff0c\u5e94\u7528 styleA \uff0c\u5bbd\u5ea6\u5728600px\u5230800px\u4e4b\u95f4\u65f6\u5e94\u7528 styleB \uff0c\u4ee5\u53ca\u5bbd\u5ea6\u5c0f\u4e8e600px\u65f6\u5e94\u7528 styleC \u3002\u90a3\u5047\u5982\u5bbd\u5ea6\u6b63\u597d\u7b49\u4e8e800px\u65f6\u8be5\u5e94\u7528\u90a3\u4e2a\u6837\u5f0f\uff1f\u662f styleB\uff0c\u56e0\u4e3a\u524d\u4e24\u6761\u8868\u8fbe\u5f0f\u90fd\u6210\u7acb\uff0c\u6309CSS\u9ed8\u8ba4\u4f18\u5148\u7ea7\u89c4\u5219\u540e\u8005\u8986\u76d6\u4e86\u524d\u8005\u3002
\u56e0\u6b64\uff0c\u4e3a\u4e86\u907f\u514d\u51b2\u7a81\uff0c\u8fd9\u4e2a\u4f8b\u5b50\u6b63\u5e38\u60c5\u51b5\u5e94\u8be5\u8fd9\u6837\u5199\uff1a<\/p>\n
<link rel=\"stylesheet\" href=\"styleA.css\" media=\"screen\"> \n<link rel=\"stylesheet\" href=\"styleB.css\" media=\"screen and (max-width: 800px)\"> \n<link rel=\"stylesheet\" href=\"styleC.css\" media=\"screen and (max-width: 600px)\">\n<\/code><\/pre>\n\u4e09\u3001\u56de\u5f52CSS3 @media<\/h4>\n
\u4e0a\u9762\u6211\u4eec\u5927\u6982\u8bb2\u4e86\u4e0bCSS2\u7684\u5a92\u4f53\u67e5\u8be2\u7528\u6cd5\uff0c\u73b0\u5728\u6211\u4eec\u91cd\u65b0\u56de\u5230CSS3\u7684\u5a92\u4f53\u67e5\u8be2\uff0c\u5728\u7b2c\u4e00\u6bb5\u4ee3\u7801\u4e0a\u9762\u6211\u7528\u7684\u662f\u5c0f\u4e8e960px\u7684\u5c3a\u5bf8\u7684\u5199\u6cd5\uff0c\u90a3\u73b0\u5728\u6211\u4eec\u6765\u5b9e\u73b0\u7b49\u4e8e960px\u5c3a\u5bf8\u7684\u4ee3\u7801\uff0c\u4ee5\u4e0b\u4ee3\u7801\u9700\u8981\u5199\u5728style\u6807\u7b7e\u6216\u8005css\u6587\u4ef6\u4e2d\uff1a<\/p>\n
@media screen and (max-device-width:960px){\n body{background:red;}\n}\n<\/code><\/pre>\n\u7136\u540e\u5c31\u662f\u5f53\u6d4f\u89c8\u5668\u5c3a\u5bf8\u5927\u4e8e960px\u65f6\u5019\u7684\u4ee3\u7801\u4e86\uff1a<\/p>\n
@media screen and (min-width:960px){ \n body{background:orange;}\n}\n<\/code><\/pre>\n\u6211\u4eec\u8fd8\u53ef\u4ee5\u6df7\u5408\u4f7f\u7528\u4e0a\u9762\u7684\u7528\u6cd5\uff1a<\/p>\n
@media screen and (min-width:960px) and (max-width:1200px){\n body{background:yellow;}\n}\n<\/code><\/pre>\n\u4e0a\u9762\u7684\u8fd9\u6bb5\u4ee3\u7801\u7684\u610f\u601d\u662f\u5f53\u9875\u9762\u5bbd\u5ea6\u5927\u4e8e960px\u5c0f\u4e8e1200px\u7684\u65f6\u5019\u6267\u884c\u4e0b\u9762\u7684CSS\u3002<\/p>\n
\u56db\u3001Media\u6240\u6709\u53c2\u6570\u6c47\u603b<\/h4>\n
\u4ee5\u4e0a\u5c31\u662f\u6211\u4eec\u6700\u5e38\u9700\u8981\u7528\u5230\u7684\u5a92\u4f53\u67e5\u8be2\u5668\u7684\u4e09\u4e2a\u7279\u6027\uff0c\u5927\u4e8e\uff0c\u7b49\u4e8e\uff0c\u5c0f\u4e8e\u7684\u5199\u6cd5\u3002\u5a92\u4f53\u67e5\u8be2\u5668\u7684\u5168\u90e8\u529f\u80fd\u80af\u5b9a\u4e0d\u6b62\u8fd9\u4e09\u4e2a\u529f\u80fd\uff0c\u4e0b\u9762\u662f\u6211\u603b\u7ed3\u7684\u5b83\u7684\u4e00\u4e9b\u53c2\u6570\u7528\u6cd5\u89e3\u91ca\uff1a<\/p>\n
width:\u6d4f\u89c8\u5668\u53ef\u89c6\u5bbd\u5ea6\u3002
height:\u6d4f\u89c8\u5668\u53ef\u89c6\u9ad8\u5ea6\u3002
device-width:\u8bbe\u5907\u5c4f\u5e55\u7684\u5bbd\u5ea6\u3002
device-height:\u8bbe\u5907\u5c4f\u5e55\u7684\u9ad8\u5ea6\u3002
orientation:\u68c0\u6d4b\u8bbe\u5907\u76ee\u524d\u5904\u4e8e\u6a2a\u5411\u8fd8\u662f\u7eb5\u5411\u72b6\u6001\u3002
aspect-ratio:\u68c0\u6d4b\u6d4f\u89c8\u5668\u53ef\u89c6\u5bbd\u5ea6\u548c\u9ad8\u5ea6\u7684\u6bd4\u4f8b\u3002(\u4f8b\u5982\uff1aaspect-ratio:16\/9)
device-aspect-ratio:\u68c0\u6d4b\u8bbe\u5907\u7684\u5bbd\u5ea6\u548c\u9ad8\u5ea6\u7684\u6bd4\u4f8b\u3002
color:\u68c0\u6d4b\u989c\u8272\u7684\u4f4d\u6570\u3002\uff08\u4f8b\u5982\uff1amin-color:32\u5c31\u4f1a\u68c0\u6d4b\u8bbe\u5907\u662f\u5426\u62e5\u670932\u4f4d\u989c\u8272\uff09
color-index:\u68c0\u67e5\u8bbe\u5907\u989c\u8272\u7d22\u5f15\u8868\u4e2d\u7684\u989c\u8272\uff0c\u4ed6\u7684\u503c\u4e0d\u80fd\u662f\u8d1f\u6570\u3002
monochrome:\u68c0\u6d4b\u5355\u8272\u6968\u7f13\u51b2\u533a\u57df\u4e2d\u7684\u6bcf\u4e2a\u50cf\u7d20\u7684\u4f4d\u6570\u3002\uff08\u8fd9\u4e2a\u592a\u9ad8\u7ea7\uff0c\u4f30\u8ba1\u54b1\u5f88\u5c11\u4f1a\u7528\u7684\u5230\uff09
resolution:\u68c0\u6d4b\u5c4f\u5e55\u6216\u6253\u5370\u673a\u7684\u5206\u8fa8\u7387\u3002(\u4f8b\u5982\uff1amin-resolution:300dpi\u6216min-resolution:118dpcm)\u3002
grid:\u68c0\u6d4b\u8f93\u51fa\u7684\u8bbe\u5907\u662f\u7f51\u683c\u7684\u8fd8\u662f\u4f4d\u56fe\u8bbe\u5907\u3002<\/p>\n
(max-width:599px) \n(min-width:600px) \n(orientation:portrait) \u7ad6\u5c4f\n(orientation:landscape) \u6a2a\u5c4f\n(-webkit-min-device-pixel-ratio: 2) \u50cf\u7d20\u6bd4\n<\/code><\/pre>\n\u4e94\u3001\u5a92\u4f53\u7c7b\u578b<\/h4>\n
1.all \u6240\u6709\u5a92\u4f53
2.braille \u76f2\u6587\u89e6\u89c9\u8bbe\u5907
3.embossed \u76f2\u6587\u6253\u5370\u673a
4.print \u624b\u6301\u8bbe\u5907
5.projection \u6253\u5370\u9884\u89c8
6.screen \u5f69\u5c4f\u8bbe\u5907
7.speech '\u542c\u89c9'\u7c7b\u4f3c\u7684\u5a92\u4f53\u7c7b\u578b
8.tty \u4e0d\u9002\u7528\u50cf\u7d20\u7684\u8bbe\u5907
9.tv \u7535\u89c6<\/p>\n
\u516d\u3001\u5173\u952e\u5b57<\/h4>\n
1.and
2.not not\u5173\u952e\u5b57\u662f\u7528\u6765\u6392\u9664\u67d0\u79cd\u5236\u5b9a\u7684\u5a92\u4f53\u7c7b\u578b
3.only only\u7528\u6765\u5b9a\u67d0\u79cd\u7279\u5b9a\u7684\u5a92\u4f53\u7c7b\u578b
-\u5f88\u591a\u65f6\u5019\u662f\u7528\u6765\u5bf9\u90a3\u4e9b\u4e0d\u652f\u6301\u5a92\u4f53\u7279\u6027\u4f46\u5374\u652f\u6301\u5a92\u4f53\u7c7b\u578b\u7684\u8bbe\u5907<\/p>\n
\u4e03\u3001\u6d4f\u89c8\u5668\u652f\u6301\u60c5\u51b5<\/h4>\n
IE8-
IE9+
Chrome 5+
Opera 10+
Firefox 3.6+<
Safari 4+<\/p>\n
\u516b\u3001\u5e38\u7528\u7684\u51e0\u79cd\u5c4f\u5e55\u5bbd\u5ea6\u8bbe\u5b9a\uff1a<\/h4>\n@media screen and (min-width: 1200px) {\n css-code;\n}\n@media screen and(min-width: 960px) and (max-width: 1199px) {\n css-code;\n}\n@media screen and(min-width: 768px) and (max-width: 959px) {\n css-code;\n}\n@media screen and(min-width: 480px) and (max-width: 767px) {\n css-code;\n}\n@media screen and (max-width: 479px) {\n css-code;\n}<\/code><\/pre>\n \u53c2\u8003\u6587\u7ae0\uff1a <\/p>\n
CSS\u4e2d@support\u7684\u7528\u6cd5_liaobangxiang\u7684\u535a\u5ba2-CSDN\u535a\u5ba2<\/p>\n
calc() - CSS: Cascading Style Sheets | MDN<\/p>\n
CSS3 @media\u67e5\u8be2 | \u83dc\u9e1f\u6559\u7a0b<\/p>\n
CSS3 @media \u7528\u6cd5\u603b\u7ed3 - \u7b80\u4e66<\/p>\n
https:\/\/www.cnblogs.com\/gaoht\/p\/11263976.html<\/p>\n","protected":false},"excerpt":{"rendered":"CSS\u4e2dcalc, support, media\u5404\u81ea\u7684\u542b\u4e49\u53ca\u7528\u6cd5\uff1f\u4e00support\u4e86\u89e3\u5230\u4e86@support\u7684\u8fd9\u4e2a\u5c5e\u6027\uff0c\u8bb0\u5f55\u4e0b\uff1aCSS\u4e2d\u7684@support\u4e3b\u8981\u662f\u7528\u4e8e\u68c0\u6d4b...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7091"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=7091"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7091\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=7091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=7091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=7091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}