{"id":6426,"date":"2017-09-19T00:23:02","date_gmt":"2017-09-18T16:23:02","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=6426"},"modified":"2018-11-15T17:07:37","modified_gmt":"2018-11-15T09:07:37","slug":"css-shapes-outside-iphone-x-head","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2017\/09\/css-shapes-outside-iphone-x-head\/","title":{"rendered":"\u501f\u52a9CSS Shapes\u5b9e\u73b0\u5143\u7d20\u6eda\u52a8\u81ea\u52a8\u73af\u7ed5iPhone X\u7684\u5218\u6d77"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=6426\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=6426<\/a><br \/>\n\u672c\u6587\u53ef\u5168\u6587\u8f6c\u8f7d\uff0c\u4f46\u9700\u5f97\u5230\u539f\u4f5c\u8005\u4e66\u9762\u8bb8\u53ef\uff0c\u540c\u65f6\u4fdd\u7559\u539f\u4f5c\u8005\u548c\u51fa\u5904\uff0c\u6458\u8981\u5f15\u6d41\u5219\u968f\u610f\u3002<\/p>\n<h3>\u4e00\u3001iPhone X\u7684\u5218\u6d77\u53d1\u578b\u548c\u884d\u751f\u7684\u4ea4\u4e92<\/h3>\n<p><img src='http:\/\/image.zhangxinxu.com\/image\/blog\/201709\/2017-09-18_220454.jpg' width=\"496\" height=\"226\" alt=\"iPhone X\u7684\u5218\u6d77\u5934\" class=\"alignnone\" \/><\/p>\n<p>iPhone X\u9020\u578b\u4e0a\u6709\u4e2a\u663e\u8457\u7684\u7279\u8d28\uff0c\u5c31\u662f\u6709\u4e2a\u660e\u663e\u7684\u5218\u6d77\u3002<\/p>\n<p>\u7136\u540e\uff0c\u4e5f\u51fa\u73b0\u4e86\u4e00\u4e9b\u9177\u9177\u7684\u4ea4\u4e92\u3002<\/p>\n<p>\u4f8b\u5982\u4e0b\u9762\u8fd9\u4e2a\u4ea4\u4e92\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201709\/2017-09-18_222858.png\" width=\"482\" height=\"600\" alt=\"iPhone X\u5218\u6d77\u4e0e\u5217\u8868\u4ea4\u4e92\" class=\"alignnone\" \/><\/p>\n<p>\u4ea4\u4e92\u89c6\u9891\u6548\u679c\u6233\u8fd9\u91cc\u4f53\u9a8c\uff1a<a href=\"http:\/\/t.cn\/Rp01GKc\" target=\"_blank\">http:\/\/t.cn\/Rp01GKc<\/a><\/p>\n<p>\u5c31\u662f\u9875\u9762\u6eda\u52a8\u7684\u65f6\u5019\uff0c\u5217\u8868\u4f1a\u81ea\u52a8\u7ed5\u7740iPhone X\u7684\u5218\u6d77\u6392\u5217\u3002<\/p>\n<p>\u770b\u4e0a\u9762\u5fae\u535a\u622a\u56fe\u7684\u53cd\u5e94\uff0c\u597d\u50cf\u89c9\u5f97\u8fd9\u4e2a\u6548\u679c\u5b9e\u73b0\u5f88\u96be\uff0c\u5b9e\u9645\u4e0a\uff0cCSS3\u91cc\u9762\u9488\u5bf9\u8fd9\u79cd\u7279\u5b9a\u5f62\u72b6\u73af\u7ed5\u7684\u6548\u679c\u5df2\u7ecf\u652f\u6301\u5f88\u4e45\u4e86\uff0cCSS3 Shapes\u548cCSS3 Regions\u90fd\u662f\u53ef\u4ee5\u5b9e\u73b0\u7684\uff0c\u672c\u6587\u5c31\u5c06\u5c55\u793a\u5982\u4f55\u4f7f\u7528CSS3 Shapes\u5b9e\u73b0\u5143\u7d20\u5185\u5bb9\u5728\u6eda\u52a8\u7684\u65f6\u5019\u81ea\u52a8\u73af\u7ed5iPhone X\u7684\u9f50\u5218\u6d77\u7684\u6548\u679c\u3002<\/p>\n<h3>\u4e8c\u3001CSS3 Shapes\u5b9e\u73b0\u5143\u7d20\u6eda\u52a8\u81ea\u52a8\u73af\u7ed5iPhone X\u5934\u90e8\u5218\u6d77\u6548\u679c<\/h3>\n<p>\u773c\u89c1\u4e3a\u5b9e\u5148\u770b\u6548\u679c\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u7684\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201709\/css3-shapes-around-iphone-x.html\" target=\"_blank\">CSS3 Shapes\u5b9e\u73b0\u5217\u8868\u73af\u7ed5iPhone X\u5218\u6d77\u5934demo<\/a><\/p>\n<p>\u4ea6\u53ef\u4ee5\u76f4\u63a5\u624b\u673a\uff08\u5982\u679c\u662fiPhone\u7684\u8bdd\uff09\u626b\u4e0b\u9762\u4e8c\u7ef4\u7801\u4f53\u9a8c\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201709\/qr-shape-iphone-x.png\" width=\"200\" height=\"200\" alt=\"\u5217\u8868\u73af\u7ed5\u9f50\u5218\u6d77\u6f14\u793a\u9875\u9762\u4e8c\u7ef4\u7801\" class=\"alignnone\" \/><\/p>\n<p>\u6eda\u52a8\u5217\u8868\uff0c\u53ef\u4ee5\u770b\u5230\u7c7b\u4f3c\u4e0b\u9762gif\u7684\u6548\u679c\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/wx4.sinaimg.cn\/mw690\/4b4d632fgy1fjo3l46x3yg208g0do7c3.gif\" width=\"304\" height=\"492\" alt=\"\u5217\u8868\u73af\u7ed5 iPhone X\u5218\u6d77gif\u622a\u5c4f\u6548\u679c\" data-store=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201709\/shape-outside-s.gif\" \/><\/p>\n<h4>\u73af\u7ed5\u9f50\u5218\u6d77\u6eda\u52a8\u5b9e\u73b0\u539f\u7406<\/h4>\n<p>CSS Shapes\u4e2d\u6709\u4e2aCSS\u5c5e\u6027\u540d\u4e3a<code>shape-outside<\/code>\uff0c\u53ef\u4ee5\u8ba9\u5185\u8054\u5143\u7d20\u4ee5\u4e0d\u89c4\u5219\u7684\u5f62\u72b6\u8fdb\u884c\u5916\u90e8\u6392\u5217\uff0c\u5176\u8bed\u6cd5\u5982\u4e0b\uff08\u53c2\u8003\u81ea<a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/CSS\/shape-outside\" target=\"_blank\">MDN<\/a>\uff09\uff1a<\/p>\n<pre><span style=\"color:green;\">\/* \u5173\u952e\u5b57\u503c *\/<\/span>\nshape-outside: none;\nshape-outside: margin-box;\nshape-outside: content-box;\nshape-outside: border-box;\nshape-outside: padding-box;\n\n<span style=\"color:green;\">\/* \u51fd\u6570\u503c *\/<\/span>\nshape-outside: circle();\nshape-outside: ellipse();\nshape-outside: inset(10px 10px 10px 10px);\nshape-outside: polygon(10px 10px, 20px 20px, 30px 30px);\n\n<span style=\"color:green;\">\/* &lt;url&gt;\u503c *\/<\/span>\nshape-outside: url(image.png);\n\n<span style=\"color:green;\">\/* \u6e10\u53d8\u503c *\/<\/span>\nshape-outside: linear-gradient(45deg, rgba(255, 255, 255, 0) 150px, red 150px);\n<\/pre>\n<p><code>shape-outside<\/code>\u5c5e\u6027\u8981\u60f3\u751f\u6548\uff0c\u672c\u8eab\u9700\u8981\u662f\u6d6e\u52a8<code>float<\/code>\u5143\u7d20\u3002<\/p>\n<p>\u672c\u6587demo\u6548\u679c\u5b9e\u73b0\u4f7f\u7528\u7684\u662f<code>shape-outside:polygon()<\/code>\uff0c\u901a\u8fc7\u70b9\u5750\u6807\u52fe\u52d2\u51fa\u548c\u9f50\u5218\u6d77\u5f62\u72b6\u76f8\u4f3c\u7684\u591a\u8fb9\u5f62\u5f62\u72b6\uff0cCSS\u4ee3\u7801\u4e3a\uff1a<\/p>\n<pre>.shape {\n  float: left;\n  shape-outside: polygon(0 0, 0 150px, 16px 154px, 30px 166px, 30px 314px, 16px 326px, 0 330px, 0 0);\n}<\/pre>\n<p>\u5982\u4e0b\u56fe\u7d2b\u8272\u533a\u57df\u793a\u610f\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201709\/2017-09-18_230113.png\" width=\"228\" height=\"443\" alt=\"CSS shapes\u52fe\u52d2\u51fa\u7684\u8fd1\u4f3c\u9f50\u5218\u6d77\u7684\u5f62\u72b6\" class=\"alignnone\" \/><\/p>\n<p>\u6b64\u65f6\uff0c\u540e\u9762\u6ca1\u6709\u8bbe\u7f6eBFC\uff08\u5757\u72b6\u683c\u5f0f\u5316\u4e0a\u4e0b\u6587\uff09\u7684\u5217\u8868\u5143\u7d20\u5c31\u4f1a\u81ea\u52a8\u73af\u7ed5\u8fd9\u4e2a\u5f62\u72b6\u6392\u5217\uff0c\u4e5f\u5c31\u662f\u81ea\u52a8\u907f\u5f00\u4e86\u9f50\u5218\u6d77\u533a\u57df\u3002<\/p>\n<p>\u7136\u540e\uff0c\u53ea\u8981\u641e\u4e2a\u5047\u7684iPhone X\u7684\u9f50\u5218\u6d77\u56fe\u7247\u8986\u76d6\u5728\u533a\u57df\u4e0a\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u81f3\u6b64\uff0c\u4e00\u4e2a\u9759\u6001\u7684\u5217\u8868\u73af\u7ed5\u9f50\u5218\u6d77\u7684\u6548\u679c\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<p>\u4e0b\u9762\u5173\u952e\u7684\u95ee\u9898\u662f\u5982\u4f55\u8ba9\u6eda\u52a8\u7684\u65f6\u5019\uff0c\u5217\u8868\u5143\u7d20\u52a8\u6001\u7684\u8ddf\u7740\u73af\u7ed5\u5462\uff1f<\/p>\n<p>\u7531\u4e8e<code>shape-outside<\/code>\u6240\u5728\u7684\u5143\u7d20\u662f\u6d6e\u52a8\u5143\u7d20\uff0c\u56e0\u6b64\uff0c\u5fc5\u5b9a\u4f1a\u8ddf\u7740\u5bb9\u5668\u4e00\u8d77\u6eda\u52a8\uff0c\u6211\u4eec\u9700\u8981\u7684\u6548\u679c\u662f\u6211\u4eec\u6240\u7ed8\u5236\u7684\u8fd9\u4e2a\u5218\u6d77\u533a\u57df\u9700\u8981\u662f\u56fa\u5b9a\u7684\uff0c\u600e\u4e48\u529e\uff1f\u6b64\u65f6\uff0c\u6211\u662f\u501f\u52a9JavaScript\u5904\u7406\u7684\u3002<\/p>\n<p>\u539f\u7406\u5f88\u7b80\u5355\uff0c\u76d1\u542c\u5bb9\u5668\u7684\u6eda\u52a8\u4e8b\u4ef6\uff0c\u8ba9\u6211\u4eec\u7684<code>shape-outside<\/code>\u7ed8\u5236\u7684\u533a\u57df\u5b9e\u65f6\u504f\u79fb\u6eda\u52a8\u7684\u5927\u5c0f\u3002\u6b64\u65f6\u8089\u773c\u770b\u4e0a\u53bb\u7684\u6548\u679c\u5c31\u662f<code>shape-outside<\/code>\u533a\u57df\u6c38\u8fdc\u56fa\u5b9a\u5728\u4e86\u6eda\u52a8\u5bb9\u5668<code>clientHeight<\/code>\u7684\u4e2d\u95f4\u3002<\/p>\n<p>\u6574\u4e2a\u6548\u679c\u5c31\u8fd9\u4e48\u5b9e\u73b0\u4e86\uff0c\u76f8\u5173JS\u5982\u4e0b\uff1a<\/p>\n<pre>box.addEventListener('scroll', function () {\n  var scrollTop = box.scrollTop;\n  <span style=\"color:green;\">\/\/ \u6eda\u52a8\u504f\u79fb\u5e94\u7528\u5728shape-outside\u4e0a<\/span>\n  shape.style.shapeOutside = 'polygon(0 0, 0 '+ (150 + scrollTop) +'px, 16px '+ (154 + scrollTop) +'px, 30px '+ (166 + scrollTop) +'px, 30px '+ (314 + scrollTop) +'px, 16px '+ (326 + scrollTop) +'px, 0 '+ (330 + scrollTop) +'px, 0 0)';\n});<\/pre>\n<p>\u66f4\u8be6\u5c3d\u7684\u4ee3\u7801\u5c3d\u5728<a href=\"http:\/\/www.zhangxinxu.com\/study\/201709\/css3-shapes-around-iphone-x.html\" target=\"_blank\">demo\u9875\u9762<\/a>\u3002<\/p>\n<h3>\u4e09\u3001CSS Shapes\u73af\u7ed5iPhone X\u5218\u6d77\u7684\u5176\u5b83\u66f4\u7b80\u6613\u65b9\u6cd5<\/h3>\n<p>\u5982\u679c\u6211\u4eec\u7684\u6280\u672f\u9009\u578b\u662f\u66f4\u770b\u91cd\u7b80\u5355\u6613\u61c2\uff0c\u800c\u4e0d\u662f\u8d44\u6e90\u6d88\u8017\u4e0e\u5360\u7528\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>shape-outside:url(image.png)<\/code>\u8bed\u6cd5\u5b9e\u73b0\u7c7b\u4f3c\u7684\u6548\u679c\uff0c\u5176\u4e2d<code>'image.png'<\/code>\u5c31\u662f\u7528\u6765\u88ab\u73af\u7ed5\u7684\u56fe\u7247\uff0c\u73af\u7ed5\u4e0e\u5426\u662f\u57fa\u4e8e\u8ba1\u7b97alpha\u901a\u9053\u51b3\u5b9a\uff0c\u7528\u53e5\u7b80\u5355\u7684\u8bdd\u63cf\u8ff0\uff0c\u5c31\u662f\u6cbf\u7740\u56fe\u7247\u975e\u900f\u660e\u533a\u57df\u73af\u7ed5\u3002<\/p>\n<p>\u7531\u4e8e\u4f7f\u7528<code>url()<\/code>\u7684\u5f62\u72b6\u8ba1\u7b97\u662f\u57fa\u4e8e\u56fe\u7247\u5143\u7d20\uff0c\u548c<code>inset()<\/code>, <code>circle()<\/code>, <code>ellipse()<\/code>\u6216\u8005<code>polygon()<\/code>\u8fd9\u4e9b\u57fa\u7840\u5f62\u72b6\u65b9\u6cd5\u7684\u8ba1\u7b97\u6027\u8d28\u4e0d\u4e00\u6837\uff0c\u56e0\u6b64\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u5782\u76f4\u65b9\u5411\u7684<code>margin<\/code>\u8fdb\u884c\u504f\u79fb\u3002\u8fd9\u8981\u6bd4<code>polygon()<\/code>\u8fd9\u6837\u5b9e\u65f6\u8ba1\u7b97\u5750\u6807\u4f4d\u7f6e\u8981\u597d\u7406\u89e3\u7684\u591a\u3002<\/p>\n<p>\u6211\u4eec\u4e0d\u59a8\u770b\u4e0bCSS\u548cJS\u4ee3\u7801\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre>.shape {\n  float: left;\n  shape-outside: url(liu-outside.png);\n  margin-top: 150px;\n}<\/pre>\n<pre>box.addEventListener('scroll', function () {\n  var scrollTop = box.scrollTop;\n  <span style=\"color:green;\">\/\/ \u6eda\u52a8\u504f\u79fb\u5e94\u7528\u5728margin-top\u4e0a<\/span>\n  shape.style.marginTop = (150 + scrollTop) + 'px';\n});<\/pre>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u5f53\u6211\u4eec\u6eda\u52a8\u5bb9\u5668\u7684\u65f6\u5019\uff0c\u6539\u53d8\u7684\u5c31\u4e00\u4e2a<code>marginTop<\/code>\u503c\u5c31\u597d\u4e86\uff1b\u800c\u4e0a\u9762\u7684 <code>shape-outside:polygon()<\/code>\u5b9e\u73b0\u9700\u8981\u540c\u65f6\u6539\u53d8\u591a\u4e2a\u5750\u6807\u503c\u3002<\/p>\n<p>\u773c\u89c1\u4e3a\u5b9e\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u7684\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201709\/css3-shapes-url-for-iphone-x.html\" target=\"_blank\">shape-outside url\u5b9e\u73b0\u5217\u8868\u73af\u7ed5iPhone X\u5218\u6d77demo<\/a><\/p>\n<p>\u5982\u679c\u662fiPhone\u624b\u673a\uff0c\u8fd8\u53ef\u4ee5\u626b\u4e0b\u9762\u7801\u4f53\u9a8c\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201709\/qr-shape-iphone-x2.png\" width=\"200\" height=\"200\" alt=\"shape-outside url\u73af\u7ed5iPhone X\u5218\u6d77\u4e8c\u7ef4\u7801\" class=\"alignnone\" \/><\/p>\n<p>\u6548\u679c\u7c7b\u4f3c\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/wx1.sinaimg.cn\/mw690\/4b4d632fgy1fjo5qvf2zvg208e0dnacs.gif\" width=\"302\" height=\"491\" alt=\"shape-outside url\u5b9e\u73b0\u7684\u73af\u7ed5\u5217\u8868\u6548\u679c\" class=\"alignnone\" \/><\/p>\n<p><strong>\u6709\u4e2a\u7ec6\u8282\u8bf4\u660e<\/strong><br \/>\n\u8fd9\u91cc\u6709\u4e2a\u7ec6\u8282\u9700\u8981\u8bf4\u660e\u4e0b\uff0c\u90a3\u5c31\u662f\u4f5c\u4e3a\u73af\u7ed5\u533a\u57df\u7684\u56fe\u7247\u548c\u524d\u9762\u663e\u793a\u7684\u90a3\u4e2a\u5218\u6d77\u56fe\u7247\u4e0d\u662f\u4e00\u5f20\u56fe\u7247\uff0c\u56e0\u4e3a\u6211\u4eec\u7684\u5218\u6d77\u533a\u57df\u9700\u8981\u548c\u540e\u9762\u7684\u6587\u5b57\u6709\u4e00\u6bb5\u7684\u95f4\u9699\uff0c\u56e0\u6b64\uff0c<code>url(liu-outside.png)<\/code>\u4e2d\u7684\u8fd9\u5f20<code>'liu-outside.png'<\/code>\u56fe\u7247\u662f\u6709\u7279\u522b\u7684\u5b9e\u8272\u586b\u5145\u5904\u7406\u7684\uff08\u6269\u5c55\u53f3\u4fa7\u73af\u7ed5\u533a\u57df\u5c3a\u5bf8\uff09\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201709\/2017-09-18_232336.png\" width=\"103\" height=\"194\" alt=\"\u5218\u6d77\u5360\u4f4d\u533a\u57df\u56fe\u7247\u7684\u6269\u5c55\u5904\u7406\" class=\"alignnone\" \/><\/p>\n<h3>\u56db\u3001CSS Shapes\u7684\u517c\u5bb9\u6027\u4ee5\u53ca\u7ed3\u675f\u8bed<\/h3>\n<p>CSS Shapes\u7684\u517c\u5bb9\u6027\u4e3aChrome\u6d4f\u89c8\u5668\u548cSafari\u6d4f\u89c8\u5668\uff08\u5305\u62eciOS\uff09\u90fd\u662f\u652f\u6301\u7684\uff0c\u4e5f\u5c31\u610f\u5473\u7740\u6211\u4eec\u662f\u53ef\u4ee5\u5728iPhone\u4e0a\u4f7f\u7528\u7684\uff0c\u5b8c\u7f8e\u3002\u53ea\u662f\u9700\u8981\u6ce8\u610f\u7684\u662f\u5728iOS10.2\u53ca\u5176\u4e4b\u524d\u7684\u7248\u672c\uff0cCSS Shapes\u7684\u4f7f\u7528\u8fd8\u662f\u9700\u8981\u52a0<code>webkit<\/code>\u79c1\u6709\u524d\u7f00\u7684\uff0c\u4f46\u636e\u8bf4iPhone X\u81f3\u5c11\u9ed8\u8ba4iOS 11\uff0c\u800c\u5218\u6d77\u5934\u4ea4\u4e92\u6548\u679c\u5c31\u662f\u9488\u5bf9iPhone X\u5904\u7406\u7684\uff0c\u56e0\u6b64<code>webkit<\/code>\u79c1\u6709\u524d\u7f00\u4e0d\u52a0\u4e5f\u6ca1\u5173\u7cfb\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201709\/2017-09-19_001827.png\" width=\"347\" height=\"248\" alt=\"CSS Shapes\u7684Safari\u6d4f\u89c8\u5668\u517c\u5bb9\u6027\" class=\"alignnone\" \/><\/p>\n<p>\u672c\u6587\u8fd9\u4e2a\u4f8b\u5b50\u53ef\u4ee5\u770b\u51fa\u77e5\u8bc6\u5e7f\u5ea6\u7684\u91cd\u8981\u6027\uff0c\u5982\u679c\u6211\u4eec\u6df1\u7a76\u6700\u7ec8\u6548\u679c\u5b9e\u73b0\u4f7f\u7528\u7684CSS\u548cJS\u4ee3\u7801\uff0c\u5176\u5b9e\u5c31\u51e0\u884c\u4ee3\u7801\u800c\u5df2\uff0c\u952e\u76d8\u6572\u4e00\u4e0b\uff0c\u51e0\u5206\u949f\u5c31\u7ed3\u675f\u4e86\u3002<\/p>\n<p>\u90a3\u4e3a\u4ec0\u4e48\u5e7f\u5927\u524d\u7aef\u4e00\u770b\u5230\u8fd9\u4e2a\u6548\u679c\u89c9\u5f97\u725b\uff0c\u751a\u81f3\u8ba4\u4e3a\u201cUI\u548c\u524d\u7aef\u5df2\u7ecf\u54ed\u6655\u5728\u5395\u6240\u201d\u5462\uff1f\u5176\u5b9e\u5c31\u662f\u4e0d\u77e5\u9053CSS3 Shapes\u548cCSS3 Regions\u8fd9\u4e9b\u4e0e\u73af\u7ed5\u5e03\u5c40\u76f8\u5173\u7684CSS\u5c5e\u6027\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u4e0b\u73ed\u56de\u5bb6\uff0c\u7ecf\u5e38\u5173\u6ce8\u4e00\u4e9b\u524d\u6cbf\u6280\u672f\u8fd8\u662f\u5f88\u6709\u5fc5\u8981\u7684\uff0c\u6ce8\u610f\u662f\u524d\u6cbf\u6280\u672f\uff0c\u4e0d\u662f\u6d41\u884c\u6280\u672f\u3002\u5f88\u591a\u524d\u6cbf\u6280\u672f\u56e0\u4e3a\u4f7f\u7528\u573a\u666f\u5c0f\u4f17\uff0c\u5e76\u4e0d\u6d41\u884c\uff0c\u751a\u81f3\u4f60\u53ef\u4ee5\u51e0\u5e74\u9879\u76ee\u90fd\u7528\u4e0d\u5230\u3002\u5982\u679c\u4f60\u60f3\u5728\u6280\u672f\u4e0a\u6709\u6240\u9020\u8be3\uff0c\u4e00\u5b9a\u8981\u6452\u5f03\u529f\u5229\u4e4b\u5fc3\uff0c\u82b1\u65f6\u95f4\u4e86\u89e3\u4e4b\u3002<\/p>\n<p>\u4ee5\u4e0a~<\/p>\n<p>\u884c\u6587\u5306\u5fd9\uff0c\u5982\u679c\u6709\u8868\u8ff0\u4e0d\u51c6\u786e\u7684\u5730\u65b9\uff0c\u6b22\u8fce\u6307\u6b63\u3002<\/p>\n<p>\u6700\u540e\u611f\u8c22\u60a8\u82b1\u8d39\u5b9d\u8d35\u7684\u65f6\u95f4\u9605\u8bfb\u672c\u6587\uff01<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201611\/14.png\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u4f1a\u7ecf\u5e38\u66f4\u65b0\u77e5\u8bc6\u70b9\u4ee5\u53ca\u4fee\u6b63\u4e00\u4e9b\u9519\u8bef\uff0c\u56e0\u6b64\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u539f\u51fa\u5904\uff0c\u65b9\u4fbf\u6eaf\u6e90\uff0c\u907f\u514d\u9648\u65e7\u9519\u8bef\u77e5\u8bc6\u7684\u8bef\u5bfc\uff0c\u540c\u65f6\u6709\u66f4\u597d\u7684\u9605\u8bfb\u4f53\u9a8c\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=6426\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=6426<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iPhone X\u9020\u578b\u4e0a\u6709\u4e2a\u663e\u8457\u7684\u7279\u8d28\uff0c\u5c31\u662f\u6709\u4e2a\u660e\u663e\u7684\u5218\u6d77\u3002<\/p>\n<p>\u7136\u540e\uff0c\u4e5f\u51fa\u73b0\u4e86\u4e00\u4e9b\u9177\u9177\u7684\u4ea4\u4e92\uff0c\u4f8b\u5982\u9875\u9762\u6eda\u52a8\u7684\u65f6\u5019\uff0c\u5217\u8868\u4f1a\u81ea\u52a8\u7ed5\u7740iPhone X\u7684\u5218\u6d77\u6392\u5217\u3002\u770b\u5fae\u535a\u8bc4\u8bba\uff0c\u597d\u50cf\u89c9\u5f97\u8fd9\u4e2a\u6548\u679c\u5b9e\u73b0\u5f88\u96be\uff0c\u5b9e\u9645\u4e0a\uff0cCSS3\u91cc\u9762\u9488\u5bf9\u8fd9\u79cd\u7279\u5b9a\u5f62\u72b6\u73af\u7ed5\u7684\u6548\u679c\u5df2\u7ecf\u652f\u6301\u5f88\u4e45\u4e86\uff0cCSS3 Shapes\u548cCSS3 Regions\u90fd\u662f\u53ef\u4ee5\u5b9e\u73b0\u7684\uff0c\u672c\u6587\u5c31\u5c06\u5c55\u793a\u5982\u4f55\u4f7f\u7528CSS3 Shapes\u5b9e\u73b0\u5143\u7d20\u5185\u5bb9\u5728\u6eda\u52a8\u7684\u65f6\u5019\u81ea\u52a8\u73af\u7ed5iPhone X\u7684\u9f50\u5218\u6d77\u7684\u6548\u679c\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1161,1169,1168,177,315,1167,986,1166,75,124],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/6426"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=6426"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/6426\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=6426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=6426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=6426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}