{"id":2626,"date":"2018-04-07T10:57:09","date_gmt":"2018-04-07T02:57:09","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2626"},"modified":"2018-04-07T10:57:09","modified_gmt":"2018-04-07T02:57:09","slug":"css3%e6%96%b0%e8%a7%84%e5%88%99%ef%bc%9a%e7%bb%a7%e6%89%bf%e4%b8%8e%e9%87%8d%e8%ae%be","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2626","title":{"rendered":"CSS3\u65b0\u89c4\u5219\uff1a\u7ee7\u627f\u4e0e\u91cd\u8bbe"},"content":{"rendered":"<p>\n\tW3C\u63a8\u51fa\u4e00\u7ec4\u5d2d\u65b0\u7684css\u6837\u5f0f\u89c4\u5219\uff1a<b>all:default<\/b>\u3002All\u6807\u7b7e\u4e0b\u8bbeinitial\u3001inherit\u548cdefault\u4e09\u79cd\u5c5e\u6027\u503c\u3002Initial\u610f\u4e3a&ldquo;\u6700\u521d&rdquo;\uff0c\u91c7\u7528all:initial\u89c4\u5219\u5f3a\u8c03\u5b50\u7c7b\u6837\u5f0f\u5c5e\u6027\u7ee7\u627f\u81ea\u8d77\u59cb\u7c7b\uff0c\u76f4\u63a5\u8d8a\u8fc7\u7236\u7c7b\u6837\u5f0f\u5c5e\u6027\u7684\u51b2\u7a81\u90e8\u5206\uff1binherit\u662fall\u6807\u7b7e\u9ed8\u8ba4\u503c\uff0c\u5176\u610f\u4e3a&ldquo;\u7ee7\u627f&rdquo;\uff0ccss\u6837\u5f0f\u89c4\u5219\u9ed8\u8ba4\u7236\u7c7b\u6837\u5f0f\u5c5e\u6027\u9057\u4f20\u7ed9\u5b50\u7c7b\uff1bdefault\u7684\u610f\u601d\u662f&ldquo;\u9ed8\u8ba4&rdquo;\uff0call:default\u662f\u91cd\u65b0\u8bbe\u5b9acss\u6837\u5f0f\u5c5e\u6027\uff0c\u6e05\u9664\u6240\u6709\u4e0a\u7ea7\u7c7b\u7684\u5f71\u54cd\u3002\n<\/p>\n<p>\n\t\u4e0a\u9762\u8bb2\u4e86\u4e00\u5806\u597d\u50cf\u5f88\u62d7\u53e3\u7684\u6837\u5b50\uff0c\u6240\u4ee5\u6211\u4eec\u8fd8\u662f\u4e3e\u4f8b\u8bf4\u660e\u5427\u3002\u9996\u5148\u4f9d\u65e7\u662fhtml\u4ee3\u7801\u90e8\u5206\uff1a<br \/>\n\t<textarea cols=\"32\" rows=\"9\">&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;All\u6807\u7b7e\u6837\u5f0f\u5c5e\u6027\u793a\u4f8b&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;div class=&quot;one&quot;&gt;\u6bb5\u843d\u4e00&lt;\/div&gt;<br \/>\n&lt;div class=&quot;two&quot;&gt;\u6bb5\u843d\u4e8c&lt;\/div&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/textarea>\n<\/p>\n<p>\n\t\u5728html\u9875\u9762\u5f53\u4e2d\uff0c\u4f4d\u4e8e&lt;body&gt;&lt;\/body&gt;\u4e4b\u95f4\u7684\u5185\u5bb9\u662f\u7528\u6237\u53ef\u89c1\u90e8\u5206\uff0c\u89c4\u5219\u9ed8\u8ba4\uff08all:inherit\uff09\u7684\u6837\u5f0f\u5c5e\u6027\u7ee7\u627f\u5173\u7cfb\u662fhtml&rarr;body&rarr;one\u548chtml&rarr;body&rarr;two\u8fd9\u4e24\u6761\u7ebf\uff0chtml\u4e3a\u8d77\u59cb\u7c7b\uff0cbody\u4e3aone\u548ctwo\u7684\u7236\u7c7b\u3002\u5047\u5b9a<span style=\"color:#ff0000\">html{color:red}<\/span>\uff0c\u7f51\u9875\u6587\u5b57&ldquo;\u6bb5\u843d\u4e00&rdquo;\u548c&ldquo;\u6bb5\u843d\u4e8c&rdquo;\u90fd\u4f1a\u53d8\u6210\u7ea2\u8272\uff1b\u589e\u52a0<span style=\"color:#993399\">body{color:pink}<\/span>\uff0c\u4e0a\u8ff0\u6587\u5b57\u53c8\u4f1a\u53d8\u6210\u7c89\u8272\u3002\u8fd9\u5c31\u662f\u9ed8\u8ba4\u7684css\u6837\u5f0f\u7236\u5b50\u7ee7\u627f\u6a21\u5f0f\u3002\n<\/p>\n<p>\n\t\u8fdb\u4e00\u6b65\u8ffd\u52a0<b>.one{all:initial}<\/b>\u548c<b>.two{all:default}<\/b>\uff0c\u5728\u627f\u8ba4all\u6807\u7b7e\u76f8\u5173\u5c5e\u6027\u503c\u7684\u6d4f\u89c8\u5668\u4e2d\u5e94\u8be5\u53ef\u4ee5\u770b\u5230\uff0c&ldquo;\u6bb5\u843d\u4e00&rdquo;\u53d8\u6210\u7ea2\u8272\uff0c\u7ee7\u627f\u8d77\u59cb\u7c7bhtml\u7684\u6837\u5f0f\u5c5e\u6027\uff1b\u800c&ldquo;\u6bb5\u843d\u4e8c&rdquo;\u5219\u53d8\u6210\u7cfb\u7edf\u9ed8\u8ba4\u7684\u9ed1\u8272\uff0c\u65e0\u8bbahtml\u8fd8\u662fbody\u7684\u6837\u5f0f\u5c5e\u6027\u5747\u65e0\u6cd5\u5bf9\u5176\u6784\u6210\u5f71\u54cd\uff0c\u4e5f\u5c31\u662f\u5c06\u4e0a\u7ea7\u7c7b\u7684\u6837\u5f0f\u5c5e\u6027\u6e05\u96f6\u91cd\u8bbe\u3002\n<\/p>\n<p>\n\t\u9057\u61be\u7684\u662f\u76ee\u524d\u5c1a\u65e0\u4e3b\u6d41\u6d4f\u89c8\u5668\u652f\u6301all\u6807\u7b7e\u3002\u4f5c\u4e3a\u7cfb\u7edf\u9ed8\u8ba4\u503c\u7684<b>all:inherit<\/b>\u65e0\u8bba\u5199\u4e0d\u5199\u90fd\u80fd\u4fdd\u8bc1\u5b50\u7c7b\u987a\u5229\u7ee7\u627f\u7236\u7c7b\u6837\u5f0f\u5c5e\u6027\uff0c\u800c<b>all:initial<\/b>\u548c<b>all:default<\/b>\u65e0\u8bba\u5199\u4e0d\u5199\u90fd\u4e0d\u4f1a\u5f71\u54cd\u5230\u8fd9\u79cd\u7ee7\u627f\uff0c\u5c31\u548c\u73b0\u9636\u6bb5\u7684ol\u6709\u5e8f\u5217\u8868\u7684reversed\u5012\u5e8f\u6a21\u5f0f\u4e00\u6837\u9b3c\u7528\u6ca1\u6709\u3002\u4f46\u8fd9\u4e0d\u59a8\u788d\u7f51\u9875\u5236\u4f5c\u8005\u5bf9all\u6807\u7b7e\u7684\u671f\u5f85&mdash;&mdash;\u6211\u5c31\u60f3\u8981\u67d0\u4e9b\u7f51\u9875\u6587\u5b57\u663e\u793a\u4e3a\u7cfb\u7edf\u9ed8\u8ba4\u989c\u8272\u6216\u8005\u8d77\u59cb\u7c7b\u8bbe\u5b9a\u989c\u8272\uff0c\u6211\u624d\u4e0d\u8981\u53cd\u53cd\u590d\u590d\u628a\u540c\u4e00\u6807\u7b7e\u540c\u4e00\u5c5e\u6027\u503c\u5199\u5f88\u591a\u904d\u5462\uff01<\/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=2626\">CSS3\u65b0\u89c4\u5219\uff1a\u7ee7\u627f\u4e0e\u91cd\u8bbe<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>W3C\u63a8\u51fa\u4e00\u7ec4\u5d2d\u65b0\u7684css\u6837\u5f0f\u89c4\u5219\uff1aall:default\u3002All\u6807\u7b7e\u4e0b\u8bbeinitial\u3001inherit\u548cde [&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],"tags":[158,814,333,237,1053],"class_list":["post-2626","post","type-post","status-publish","format-standard","hentry","category-html5","tag-animate-css","tag-css3","tag-emoji-css"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2626","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=2626"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2626\/revisions"}],"predecessor-version":[{"id":2627,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2626\/revisions\/2627"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}