{"id":2624,"date":"2018-04-07T10:41:54","date_gmt":"2018-04-07T02:41:54","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2624"},"modified":"2018-04-07T10:41:54","modified_gmt":"2018-04-07T02:41:54","slug":"css3-default%e4%bc%aa%e7%b1%bb%e9%80%89%e6%8b%a9%e5%99%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2624","title":{"rendered":"CSS3 :default\u4f2a\u7c7b\u9009\u62e9\u5668\u6559\u7a0b"},"content":{"rendered":"<p>\n\tCSS3 \u63a8\u51fa\u4e86\u5f88\u591a\u65b0\u7684\u4f2a\u7c7b\u9009\u62e9\u5668\uff0c\u5982\uff1aE:checked\u3001E:default\u548cE:indeterminate\u3002\u6211\u4eec\u4eca\u5929\u91cd\u70b9\u4ecb\u7ecd CSS3 \u7684 default \u4f2a\u7c7b\u9009\u62e9\u5668\u3002\n<\/p>\n<p>\n\tE:default\u9009\u62e9\u5668\u7528\u6765\u6307\u5b9a\u5f53\u9875\u9762\u6253\u5f00\u65f6\u9ed8\u8ba4\u5904\u4e8e\u9009\u53d6\u72b6\u6001\u7684\u5355\u9009\u6846\u6216\u590d\u9009\u6846\u63a7\u4ef6\u7684\u6837\u5f0f\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5373\u4f7f\u7528\u6237\u5c06\u8be5\u5355\u9009\u6846\u6216\u590d\u9009\u6846\u63a7\u4ef6\u7684\u9009\u53d6\u72b6\u6001\u8bbe\u5b9a\u4e3a\u975e\u9009\u53d6\u72b6\u6001\uff0cE:default\u9009\u62e9\u5668\u4e2d\u6307\u5b9a\u7684\u6837\u5f0f\u4ecd\u7136\u6709\u6548\u3002\n<\/p>\n<p>\n\tCSS3 :default\u4f2a\u7c7b\u9009\u62e9\u5668\u53ea\u80fd\u4f5c\u7528\u5728\u8868\u5355\u5143\u7d20\u4e0a\uff0c\u8868\u793a\u9ed8\u8ba4\u72b6\u6001\u7684\u8868\u5355\u5143\u7d20\u3002\n<\/p>\n<p>\n\t\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u4e00\u4e2a\u4e0b\u62c9\u6846\uff0c\u53ef\u80fd\u6709\u591a\u4e2a\u9009\u9879\uff0c\u6211\u4eec\u9ed8\u8ba4\u4f1a\u8ba9\u67d0\u4e2a&lt;option&gt;\u5904\u4e8eselected\u72b6\u6001\uff0c\u6b64\u65f6\u8fd9\u4e2a&lt;option&gt;\u53ef\u4ee5\u770b\u6210\u662f\u5904\u4e8e\u9ed8\u8ba4\u72b6\u6001\u7684\u8868\u5355\u5143\u7d20\uff08\u4f8b\u5982\u4e0b\u9762\u793a\u610f\u4ee3\u7801\u7684&ldquo;\u9009\u98794&rdquo;\uff09\uff0c\u7406\u8bba\u4e0a\u53ef\u4ee5\u5e94\u7528:default\u4f2a\u7c7b\u9009\u62e9\u5668\u3002\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;select multiple&gt;\r\n    &lt;option&gt;\u9009\u98791&lt;\/option&gt;\r\n    &lt;option&gt;\u4e1a\u4f59\u8349&lt;\/option&gt;\r\n    &lt;option&gt;www.xttblog.com&lt;\/option&gt;\r\n    &lt;option&gt;xttblog.com&lt;\/option&gt;\r\n    &lt;option&gt;\u7231\u5206\u4eab\uff1awww.ndislwf.com&lt;\/option&gt;\r\n    &lt;option&gt;CODE\u5927\u5168\uff1awww.xttblog.com&lt;\/option&gt;\r\n&lt;\/select&gt;<\/pre>\n<p>\n\tCSS\u8bbe\u7f6e\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:css;\">\r\noption:default {\r\n    color: red;\r\n}<\/pre>\n<p>\n\t\u5219\u5728Chrome\u6d4f\u89c8\u5668\u4e0b\uff0c\u5f53\u6211\u4eec\u9009\u62e9\u5176\u4ed6\u9009\u9879\uff0c\u6b64\u65f6\u5c31\u53ef\u4ee5\u770b\u5230 xttblog.com \u662f\u7ea2\u8272\u4e86\uff0c\u6548\u679c\u5982\u4e0b\u56fe\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"CSS3 :default\u4f2a\u7c7b\u9009\u62e9\u5668\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201803\/2018-03-14_235746.png\" style=\"width: 67px;height: 81px\" \/>\n<\/p>\n<p>\n\tFirefox\u6d4f\u89c8\u5668\u4e0b\u6548\u679c\u4e5f\u662f\u4e00\u6837\u7684\u3002\n<\/p>\n<p>\n\tIE\u6d4f\u89c8\u5668\u5219\u4e0d\u652f\u6301\u3002\u56e0\u6b64\uff0c\u79fb\u52a8\u7aef\u53ef\u4ee5\u653e\u5fc3\u4f7f\u7528\uff0c\u684c\u9762\u7aef\u4e0d\u7528\u7ba1IE\u7684\u9879\u76ee\u4e5f\u53ef\u4ee5\u7528\u8d77\u6765\u3002\n<\/p>\n<p>\n\tCSS3 :default\u4f2a\u7c7b\u9009\u62e9\u5668\u4f5c\u7528\u8bbe\u8ba1\u7684\u4f5c\u7528\u662f\u8ba9\u7528\u6237\u5728\u9009\u62e9\u4e00\u7ec4\u6570\u636e\u7684\u65f6\u5019\uff0c\u4f9d\u7136\u77e5\u9053\u9ed8\u8ba4\u9009\u9879\u662f\u4ec0\u4e48\uff0c\u5426\u5219\u5176\u4ed6\u9009\u9879\u4e00\u591a\uff0c\u9009\u7740\u9009\u7740\u5c31\u4e0d\u77e5\u9053\u9ed8\u8ba4\u63d0\u4f9b\u7684\u662f\u54ea\u4e2a\u4e86\uff0c\u7b97\u662f\u4e00\u79cd\u4f53\u9a8c\u589e\u5f3a\u7b56\u7565\u3002\u4f5c\u7528\u4e0d\u662f\u5f88\u5f3a\u70c8\uff0c\u4f46\u662f\u5173\u952e\u65f6\u523b\u5374\u5f88\u6709\u7528\u3002\n<\/p>\n<p>\n\t\u4e0b\u9762\u6211\u4eec\u770b\u4e00\u4e2a\u5173\u4e8eCSS3 :default\u4f2a\u7c7b\u9009\u62e9\u5668\u4f7f\u7528\u7684\u6848\u4f8b\u3002\n<\/p>\n<p>\n\tCSS\u4ee3\u7801\uff1a\n<\/p>\n<pre class=\"brush:css;\">\r\ninput:default + label::after {\r\n    content: &#039;\uff08\u63a8\u8350\uff09&#039;;\r\n}<\/pre>\n<p>\n\tHTML\u4ee3\u7801\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n\u8bf7\u9009\u62e9\u652f\u4ed8\u65b9\u5f0f\uff1a\r\n&lt;p&gt;\r\n    &lt;input type=&quot;radio&quot; name=&quot;pay&quot; id=&quot;pay0&quot; value=&quot;0&quot;&gt; &lt;label for=&quot;pay0&quot;&gt;\u652f\u4ed8\u5b9d&lt;\/label&gt;\r\n&lt;\/p&gt;\r\n&lt;p&gt;\r\n    &lt;input type=&quot;radio&quot; name=&quot;pay&quot; id=&quot;pay1&quot; value=&quot;1&quot; checked&gt; &lt;label for=&quot;pay1&quot;&gt;\u5fae\u4fe1&lt;\/label&gt;\r\n&lt;\/p&gt;\r\n&lt;p&gt;\r\n    &lt;input type=&quot;radio&quot; name=&quot;pay&quot; id=&quot;pay2&quot; value=&quot;2&quot;&gt; &lt;label for=&quot;pay2&quot;&gt;\u94f6\u884c\u5361&lt;\/label&gt;\r\n&lt;\/p&gt;<\/pre>\n<p>\n\t\u6700\u7ec8\u7684\u8fd0\u884c\u6548\u679c\u5982\u4e0b\u56fe\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"CSS :default\u4f2a\u7c7b\u9009\u62e9\u5668\u6807\u8bb0\u9ed8\u8ba4\u9009\u9879\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201803\/2018-03-15_010941.png\" style=\"width: 148px;height: 161px\" \/>\n<\/p>\n<p>\n\t\u4ee5\u4e0a\u5c31\u662f\u5173\u4e8e&nbsp;CSS :default\u4f2a\u7c7b\u9009\u62e9\u5668 \u7684\u5177\u4f53\u6559\u7a0b\uff0c\u8c22\u8c22\u5927\u5bb6\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=2624\">CSS3 :default\u4f2a\u7c7b\u9009\u62e9\u5668\u6559\u7a0b<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>CSS3 \u63a8\u51fa\u4e86\u5f88\u591a\u65b0\u7684\u4f2a\u7c7b\u9009\u62e9\u5668\uff0c\u5982\uff1aE:checked\u3001E:default\u548cE:indeterminate [&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":[814,117,237,1505,119],"class_list":["post-2624","post","type-post","status-publish","format-standard","hentry","category-html5","tag-css3","tag-html5"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2624","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=2624"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2624\/revisions"}],"predecessor-version":[{"id":2625,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2624\/revisions\/2625"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}