{"id":2349,"date":"2017-11-18T15:12:48","date_gmt":"2017-11-18T07:12:48","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2349"},"modified":"2017-11-18T15:12:48","modified_gmt":"2017-11-18T07:12:48","slug":"css-mask-image%e5%b1%9e%e6%80%a7%e8%af%a6%e7%bb%86%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2349","title":{"rendered":"CSS mask-image\u5c5e\u6027\u8be6\u7ec6\u4ecb\u7ecd"},"content":{"rendered":"<p>\n\tCSS mask\u906e\u7f69\u5c5e\u6027\u7684\u5386\u53f2\u975e\u5e38\u4e45\u8fdc\u4e86\uff0c\u8fdc\u5230\u6bd4CSS3 border-radius\u7b49\u5c5e\u6027\u8fd8\u8981\u4e45\u8fdc\uff0c\u6700\u65e9\u662f\u51fa\u73b0\u5728Safari\u6d4f\u89c8\u5668\u4e0a\u7684\uff0c\u5dee\u4e0d\u591a\u53ef\u4ee5\u8ffd\u6eaf\u523009\u5e74\u3002\n<\/p>\n<p>\n\t\u4e0d\u8fc7\u90a3\u4e2a\u65f6\u5019\uff0c\u906e\u7f69\u53ea\u80fd\u4f5c\u4e3a\u5b9e\u9a8c\u6027\u7684\u5c5e\u6027\uff0c\u505a\u4e00\u4e9b\u7279\u6548\u4f7f\u7528\u3002\u6bd5\u7adf\u90a3\u4e2a\u5e74\u4ee3\u8fd8\u662fIE\u6d4f\u89c8\u5668\u7684\u65f6\u4ee3\uff0c\u5c5e\u6027\u867d\u597d\uff0c\u4f46\u4ef7\u503c\u6709\u9650\u3002\n<\/p>\n<p>\n\t\u4f46\u662f\u5982\u4eca\u60c5\u51b5\u5374\u5927\u6709\u53d8\u5316\uff0c\u9664\u4e86IE\u548cEdge\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\uff0cFirefox\uff0cChrome\u4ee5\u53ca\u79fb\u52a8\u7aef\u7b49\u90fd\u5df2\u7ecf\u5168\u7ebf\u652f\u6301\uff0c\u5176\u5b9e\u9645\u5e94\u7528\u4ef7\u503c\u5df2\u4e0d\u53ef\u540c\u65e5\u800c\u8bed\u3002\u5c24\u5176Firefox\u6d4f\u89c8\u5668\uff0c\u4ece\u7248\u672c55\u5f00\u59cb\uff0c\u5df2\u7ecf\u5168\u9762\u652f\u6301\u4e86CSS3 mask\u5c5e\u6027\u3002\u5e76\u4e14mask\u5c5e\u6027\u89c4\u8303\u5df2\u7ecf\u8fdb\u5165\u5019\u9009\u63a8\u8350\u89c4\u8303\u4e4b\u5217\uff0c\u4f1a\u8bf4\u4ee5\u540e\u8fdb\u5165\u65e2\u5b9a\u89c4\u8303\u6807\u51c6\u5df2\u7ecf\u662f\u677f\u4e0a\u9489\u9489\u7684\u4e8b\u60c5\uff0c\u5927\u5bb6\u53ef\u4ee5\u653e\u5fc3\u5b66\u4e60\uff0c\u5c06\u6765\u5fc5\u6709\u7528\u5904\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"CSS mask\u6d4f\u89c8\u5668\u517c\u5bb9\u6027\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201711\/2017-11-11_194826.png\" style=\"width: 482px;height: 229px\" \/>\n<\/p>\n<p>\n\t\u5728\u8fc7\u53bb\uff0cCSS mask\u5c5e\u6027\u5728\u4f7f\u7528\u7684\u65f6\u5019\u5c31\u662fmask: xxx\uff0c\u4f46\u662f\u73b0\u5728\u968f\u7740\u8fd9\u4e2a\u5c5e\u6027\u7684\u89c4\u8303\u5316\uff0cmask\u5c5e\u6027\u5b9e\u9645\u4e0a\u5df2\u7ecf\u6210\u4e3a\u4e86\u8bf8\u591amask-*\u7684\u7f29\u5199\uff0c\u8fd9\u548cbackground, border\u6027\u8d28\u662f\u4e00\u6837\u7684\u3002\n<\/p>\n<p>\n\t\u5177\u4f53\u662f\u54ea\u4e9b\u5c5e\u6027\u7684\u7f29\u5199\u5462\uff0c\u53ef\u4ee5\u53c2\u89c1\u4e0b\u9762\u7684\u5217\u8868\uff1a\n<\/p>\n<ul>\n<li>\n\t\tmask-image\n\t<\/li>\n<li>\n\t\tmask-mode\n\t<\/li>\n<li>\n\t\tmask-repeat\n\t<\/li>\n<li>\n\t\tmask-position\n\t<\/li>\n<li>\n\t\tmask-clip\n\t<\/li>\n<li>\n\t\tmask-origin\n\t<\/li>\n<li>\n\t\tmask-size\n\t<\/li>\n<li>\n\t\tmask-type\n\t<\/li>\n<li>\n\t\tmask-composite\n\t<\/li>\n<\/ul>\n<p>\n\t\u4e0b\u9762\u6211\u4eec\u5148\u6765\u4ecb\u7ecd&nbsp;mask-image \u5c5e\u6027\u7684\u7528\u6cd5\u3002\n<\/p>\n<p>\n\tmask-image\u6307\u906e\u7f69\u4f7f\u7528\u7684\u56fe\u7247\u8d44\u6e90\uff0c\u9ed8\u8ba4\u503c\u662fnone\uff0c\u4e5f\u5c31\u662f\u65e0\u906e\u7f69\u56fe\u7247\u3002\u56e0\u6b64\uff0c\u548cborder\u5c5e\u6027\u4e2d\u7684border-style\u5c5e\u6027\u7c7b\u4f3c\uff0c\u662f\u4e00\u4e2a\u60f3\u8981\u6709\u6548\u679c\u5c31\u5fc5\u987b\u8bbe\u5b9a\u7684\u5c5e\u6027\u503c\u3002\n<\/p>\n<p>\n\tmask-image\u906e\u7f69\u6240\u652f\u6301\u7684\u56fe\u7247\u7c7b\u578b\u975e\u5e38\u7684\u5e7f\u6cdb\uff0c\u53ef\u4ee5\u662furl()\u9759\u6001\u56fe\u7247\u8d44\u6e90\uff0c\u683c\u5f0f\u5305\u62ecJPG\uff0cPNG\u4ee5\u53caSVG\u7b49\u90fd\u662f\u652f\u6301\u7684\uff1b\u4e5f\u53ef\u4ee5\u662f\u52a8\u6001\u751f\u6210\u7684\u56fe\u7247\uff0c\u4f8b\u5982\u4f7f\u7528\u5404\u79cdCSS3\u6e10\u53d8\u7ed8\u5236\u7684\u56fe\u7247\u3002\u8bed\u6cd5\u4e0a\u652f\u6301CSS3\u5404\u7c7b\u6e10\u53d8\uff0c\u4ee5\u53caurl()\u529f\u80fd\u7b26\uff0cimage()\u529f\u80fd\u7b26\uff0c\u751a\u81f3element()\u529f\u80fd\u7b26\u3002\u540c\u65f6\u8fd8\u652f\u6301\u591a\u80cc\u666f\uff0c\u56e0\u6b64\u7406\u8bba\u4e0a\uff0c\u4f7f\u7528mask-image\u6211\u4eec\u53ef\u4ee5\u906e\u7f69\u51fa\u4efb\u610f\u6211\u4eec\u60f3\u8981\u7684\u56fe\u5f62\uff0c\u975e\u5e38\u5f3a\u5927\u3002\n<\/p>\n<p>\n\t\u773c\u89c1\u4e3a\u5b9e\uff0c\u6211\u4eec\u901a\u8fc7\u5927\u91cf\u6848\u4f8b\u6765\u5c55\u793amask-image\u7684\u5f3a\u5927\u4e4b\u5904\u3002\n<\/p>\n<p>\n\t\u9996\u5148\uff0c\u4e0b\u9762\u6240\u6709\u6848\u4f8b\u4f7f\u7528\u539f\u59cb\u56fe\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"mask-image\" src=\"http:\/\/image.zhangxinxu.com\/image\/study\/p\/s500\/ps1.jpg\" style=\"width: 500px;height: 375px\" \/>\n<\/p>\n<p>\n\t\u6211\u4eec\u5148\u6765\u4e00\u4e2a\u6700\u57fa\u7840\u7684png\u56fe\u7247\u906e\u7f69\u5c55\u793a\u3002\n<\/p>\n<p>\n\tCSS\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:css;\">\r\n.mask-image {\r\n    width: 250px; height: 187.5px;\r\n    -webkit-mask-image: url(loading.png);\r\n    mask-image: url(loading.png);\r\n}<\/pre>\n<p>\n\tHTML\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;img src=&quot;ps1.jpg&quot; class=&quot;mask-image&quot;&gt;<\/pre>\n<p>\n\t\u6700\u540e\u7684\u6548\u679c\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"mask-image\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201711\/2017-11-11_211201.png\" style=\"width: 307px;height: 250px\" \/>\n<\/p>\n<p>\n\t\u4ece\u4e0a\u9762\u8fd9\u4e2a\u6700\u57fa\u672c\u7684\u6848\u4f8b\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u51fa\uff0c\u6240\u8c13\u906e\u7f69\uff0c\u5c31\u662f\u539f\u59cb\u56fe\u7247\u53ea\u663e\u793a\u906e\u7f69\u56fe\u7247\u975e\u900f\u660e\u7684\u90e8\u5206\u3002\u4f8b\u5982\u672c\u6848\u4f8b\u4e2d\uff0cloading\u5706\u73af\u6709\u989c\u8272\u90e8\u5206\u5c31\u662f\u5916\u9762\u4e00\u5708\u5706\u73af\uff0c\u4e8e\u662f\u6700\u7ec8\u6211\u4eec\u770b\u5230\u6548\u679c\u662f\u539f\u59cb\u56fe\u7247\uff0c\u53ea\u9732\u51fa\u4e86\u4e00\u4e2a\u4e00\u4e2a\u7684\u5708\u5708\u73af\u3002\u5e76\u4e14\u534a\u900f\u660e\u533a\u57df\u4e5f\u51c6\u786e\u906e\u7f69\u663e\u793a\u4e86\u3002\n<\/p>\n<p>\n\t\u56e0\u6b64\uff0c\u6211\u4eec\u5f88\u5c11\u4f7f\u7528jpg\u56fe\u7247\u6765\u4f5c\u4e3a\u906e\u7f69\u56fe\u7247\u7684\uff0c\u56e0\u4e3ajpg\u56fe\u7247\u4e00\u5b9a\u662f\u5b8c\u5168\u4e0d\u900f\u660e\u7684\uff0c\u6700\u7ec8\u7684\u6548\u679c\u5c31\u662f\u539f\u56fe\u4ec0\u4e48\u4e5f\u770b\u4e0d\u5230\u3002\n<\/p>\n<p>\n\t\u53e6\u5916\uff0c\u5982\u679cloading.png\u52a0\u8f7d\u5931\u8d25\uff0c\u5219Firefox\uff0cChrome\u6d4f\u89c8\u5668\u4e0b\u76f4\u63a5\u539f\u59cb\u56fe\u4e0d\u663e\u793a\u3002\n<\/p>\n<p>\n\t\u63a5\u7740\u6211\u4eec\u518d\u6765\u770b\u4e00\u4e2aSVG\u56fe\u5f62\u906e\u7f69\u6548\u679c\u5c55\u793a\u3002\n<\/p>\n<p>\n\tcss\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:css;\">\r\n.mask-image {\r\n    width: 250px; height: 187.5px;\r\n    -webkit-mask-image: url(star.svg);\r\n    mask-image: url(star.svg);\r\n}<\/pre>\n<p>\n\thtml\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;img src=&quot;ps1.jpg&quot; class=&quot;mask-image&quot;&gt;<\/pre>\n<p>\n\t\u6700\u7ec8\u7684\u6548\u679c\u548c\u4e0a\u56fe\u76f8\u4f3c\u3002\n<\/p>\n<p>\n\t\u4e0a\u9762\u662f\u5c06svg\u4f5c\u4e3a\u80cc\u666f\u56fe\u6765\u5b9e\u73b0\u7684\uff0c\u73b0\u5728\u6211\u4eec\u518d\u4f7f\u7528SVG\u56fe\u5f62\u4e2d&lt;mask&gt;\u5143\u7d20\u4f5c\u4e3a\u906e\u7f69\u5143\u7d20\u6765\u5b9e\u73b0\u5b83\u3002\n<\/p>\n<p>\n\tCSS \u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:css;\">\r\n.mask-image {\r\n    width: 250px; height: 187.5px;\r\n    -webkit-mask-image: url(#mask);\r\n    mask-image: url(#mask);\r\n    \/* Firefox\u5916\u94fe\u4e5f\u652f\u6301 *\/\r\n    \/* mask-image: url(ellipse-rect.svg#mask); *\/\r\n}<\/pre>\n<p>\n\thtml\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;svg&gt;\r\n    &lt;defs&gt;    \r\n        &lt;mask id=&quot;mask&quot; maskContentUnits=&quot;objectBoundingBox&quot;&gt;\r\n            &lt;!-- \u67d4\u5316\u8fb9\u7f18 --&gt;\r\n            &lt;ellipse cx=&quot;.5&quot; cy=&quot;.5&quot; rx=&quot;.48&quot; ry=&quot;.28&quot; fill=&quot;black&quot;&gt;&lt;\/ellipse&gt;\r\n            &lt;rect x=&quot;.2&quot; y=&quot;0&quot; width=&quot;.6&quot; height=&quot;1&quot; rx=&quot;.1&quot; ry=&quot;.1&quot; fill=&quot;black&quot;&gt;&lt;\/rect&gt;\r\n            &lt;!-- \u4e3b\u4f53\u906e\u7f69 www.xttblog.com --&gt;\r\n            &lt;ellipse cx=&quot;.5&quot; cy=&quot;.5&quot; rx=&quot;.4&quot; ry=&quot;.2&quot; fill=&quot;white&quot;&gt;&lt;\/ellipse&gt;\r\n            &lt;rect x=&quot;.3&quot; y=&quot;.1&quot; width=&quot;.4&quot; height=&quot;.8&quot; rx=&quot;.1&quot; ry=&quot;.1&quot; fill=&quot;white&quot;&gt;&lt;\/rect&gt;\r\n        &lt;\/mask&gt;\r\n    &lt;\/defs&gt;    \r\n&lt;\/svg&gt;\r\n&lt;img src=&quot;ps1.jpg&quot; class=&quot;mask-image&quot;&gt;<\/pre>\n<p>\n\t\u518d\u4f7f\u7528SVG\u5143\u7d20\u5185\u8054SVG\u7684&lt;mask&gt;\uff0c\u770b\u4e0b\u9762\u7684\u5b9e\u73b0\u3002\n<\/p>\n<p>\n\tCSS \u4ee3\u7801\uff1a\n<\/p>\n<pre class=\"brush:css;\">\r\n.mask-image {\r\n    width: 250px; height: 187.5px;\r\n    -webkit-mask-image: url(#mask);\r\n    mask: url(#mask);\r\n    mask-image: url(#mask);\r\n    \/* Firefox\u5916\u94fe\u4e5f\u652f\u6301 *\/\r\n    \/* mask-image: url(ellipse-rect.svg#mask); *\/\r\n}<\/pre>\n<p>\n\tSVG\u5b9e\u73b0\u7684\u4ee3\u7801\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;svg&gt;\r\n    &lt;defs&gt;    \r\n        &lt;mask id=&quot;mask&quot; maskContentUnits=&quot;objectBoundingBox&quot;&gt;\r\n            &lt;!-- \u67d4\u5316\u8fb9\u7f18 www.xttblog.com--&gt;\r\n            &lt;ellipse cx=&quot;.5&quot; cy=&quot;.5&quot; rx=&quot;.48&quot; ry=&quot;.28&quot; fill=&quot;black&quot;&gt;&lt;\/ellipse&gt;\r\n            &lt;rect x=&quot;.2&quot; y=&quot;0&quot; width=&quot;.6&quot; height=&quot;1&quot; rx=&quot;.1&quot; ry=&quot;.1&quot; fill=&quot;black&quot;&gt;&lt;\/rect&gt;\r\n            &lt;!-- \u4e3b\u4f53\u906e\u7f69 --&gt;\r\n            &lt;ellipse cx=&quot;.5&quot; cy=&quot;.5&quot; rx=&quot;.4&quot; ry=&quot;.2&quot; fill=&quot;white&quot;&gt;&lt;\/ellipse&gt;\r\n            &lt;rect x=&quot;.3&quot; y=&quot;.1&quot; width=&quot;.4&quot; height=&quot;.8&quot; rx=&quot;.1&quot; ry=&quot;.1&quot; fill=&quot;white&quot;&gt;&lt;\/rect&gt;\r\n        &lt;\/mask&gt;\r\n    &lt;\/defs&gt;    \r\n&lt;\/svg&gt;\r\n&lt;svg width=&quot;250&quot; height=&quot;186&quot;&gt;\r\n    &lt;image xlink:href=&quot;ps1.jpg&quot; class=&quot;mask-image&quot; width=&quot;250&quot; height=&quot;186&quot;&gt;&lt;\/image&gt;\r\n&lt;\/svg&gt;<\/pre>\n<p>\n\t\u65e0\u8bba\u662fclip-path\u8fd8\u662f\u8fd9\u91cc\u7684mask\uff0c\u5916\u94feSVG\u7279\u6027\u7684\u652f\u6301\u4e00\u5b9a\u662f\u6bd4\u5185\u8054SVG\u5f31\u7684\u3002\u65e2\u7136Chrome\u6d4f\u89c8\u5668\u8fde\u666e\u901aHTML\u7684\u5185\u8054SVG\u7684&lt;mask&gt;\u90fd\u4e0d\u652f\u6301\uff0c\u81ea\u7136\u80af\u5b9a\u4e0d\u652f\u6301\u8fd9\u91cc\u7684\u5916\u94feSVG\u6587\u4ef6&lt;mask&gt;\u5143\u7d20\u7684\u906e\u7f69\u652f\u6301\u3002\n<\/p>\n<p>\n\t\u90a3\u4e4b\u524d\u8868\u73b0\u826f\u597d\u7684Firefox\u6d4f\u89c8\u5668\u5462\uff1f\n<\/p>\n<p>\n\t\u6bd4\u8f83\u5e78\u8fd0\uff0cFirefox\u6d4f\u89c8\u5668\u6700\u8fd1\u652f\u6301\u4e86\u4efb\u610f\u5143\u7d20\u5916\u94feSVG\u6587\u4ef6\u7684&lt;mask&gt;\uff0c\u4e3a\u4ec0\u4e48\u8bf4\u6700\u8fd1\u5462\uff1f\u6211\u770b\u4e86\u4e0b\u6211\u73b0\u5728\u7684Firefox\uff0c\u663e\u793a\u6700\u65b0\u7248\uff0c\u7248\u672c\u662f56\uff0c\u7136\u540eFirefox\u652f\u6301\u4efb\u610f\u5143\u7d20\u53ef\u4ee5\u4f7f\u7528\u5916\u94feSVG &lt;mask&gt;\u5143\u7d20\u4f5c\u4e3a\u906e\u7f69\u662f\u7248\u672c55\u5f00\u59cb\u4e86\u3002\n<\/p>\n<p>\n\t\u81f3\u4e8e\u4e0a\u9762\u7684\uff0c\u4efb\u610f\u5143\u7d20\u5185\u8054SVG &lt;mask&gt;\u7684\u652f\u6301\uff0cFirefox\u5f88\u65e9\u5c31\u5df2\u7ecf\u652f\u6301\u3002\n<\/p>\n<p>\n\t\u76f8\u4fe1\u4e0d\u4e45\u7684\u7248\u672c\uff0cChrome\u6d4f\u89c8\u5668\u4e5f\u4f1a\u5bf9\u5176\u8fdb\u884c\u652f\u6301\u7684\uff0c\u53ef\u4ee5\u8010\u5fc3\u7b49\u5f85\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2349\">CSS mask-image\u5c5e\u6027\u8be6\u7ec6\u4ecb\u7ecd<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>CSS mask\u906e\u7f69\u5c5e\u6027\u7684\u5386\u53f2\u975e\u5e38\u4e45\u8fdc\u4e86\uff0c\u8fdc\u5230\u6bd4CSS3 border-radius\u7b49\u5c5e\u6027\u8fd8\u8981\u4e45\u8fdc\uff0c\u6700\u65e9\u662f\u51fa\u73b0 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[814,119,1580,52,48],"class_list":["post-2349","post","type-post","status-publish","format-standard","hentry","category-html5","category-yyzt","tag-css3","tag-html5","tag-mask-image","tag-svg","tag-web"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2349"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2349\/revisions"}],"predecessor-version":[{"id":2350,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2349\/revisions\/2350"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}