{"id":1038,"date":"2023-03-12T09:43:15","date_gmt":"2023-03-12T01:43:15","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1038"},"modified":"2023-04-29T13:12:02","modified_gmt":"2023-04-29T05:12:02","slug":"cross-browser-html-pages-and-image-grayscale","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/12\/cross-browser-html-pages-and-image-grayscale\/","title":{"rendered":"\u8de8\u6d4f\u89c8\u5668Html\u9875\u9762\u53ca\u56fe\u50cf\u7070\u5ea6(grayscale)"},"content":{"rendered":"<h2>meta\u6807\u7b7e\u89c4\u8303<\/h2>\n<p>\u4f7f\u7528W3c CSS filter\u65b9\u5f0f\u7684grayscale\u5b9e\u73b0Html\u9875\u9762\u53ca\u56fe\u50cf\u7070\u5ea6<\/p>\n<p><!-- more --><\/p>\n<p>CSS3\u4e2d\u501f\u9274IE\u79c1\u6709\u6ee4\u955c\u7684\u65b9\u5f0f\u63d0\u4f9b\u4e86\u6807\u51c6\u7684CSS Filter\u65b9\u6848\uff0c\u652f\u6301grayscale\u7070\u5ea6\u3001sepia\u8910\u8272\u3001saturate\u9971\u548c\u5ea6\u3001hue-rotate\u8272\u76f8\u65cb\u8f6c\u3001invert\u53cd\u8272\u3001opacity\u900f\u660e\u5ea6\u3001brightness\u4eae\u5ea6\u3001contrast\u5bf9\u6bd4\u5ea6\u3001blur\u6a21\u7cca\u3001drop-shadow\u9634\u5f71\u7b49\u5341\u79cd\u6548\u679c\u3002<\/p>\n<p>\u5b9e\u73b0grayscale\u7070\u5ea6Html\u9875\u9762\u53ca\u56fe\u50cf\u7684\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-css\">gray-filter {\n -webkit-filter: grayscale(100%);    \/* webkit\u5185\u6838\u652f\u6301\u7a0b\u5ea6\u8f83\u597d *\/\n    -moz-filter: grayscale(100%);    \/* \u5176\u4ed6\u5185\u6838\u73b0\u5728\u5e76\u4e0d\u652f\u6301\uff0c\u4e3a\u4e86\u5c06\u6765\u517c\u5bb9\u6027\u4e66\u5199 *\/\n     -ms-filter: grayscale(100%);\n      -o-filter: grayscale(100%);\n         filter: grayscale(100%);    \/* \u6807\u51c6\u5199\u6cd5 *\/\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>meta\u6807\u7b7e\u89c4\u8303 \u4f7f\u7528W3c CSS filter\u65b9\u5f0f\u7684grayscale\u5b9e\u73b0Html\u9875\u9762\u53ca\u56fe\u50cf\u7070\u5ea6 CSS3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[85,159],"class_list":["post-1038","post","type-post","status-publish","format-standard","hentry","category-frontend-basic","tag-css","tag-h5"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1038"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1038\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}