{"id":2519,"date":"2018-02-23T14:36:09","date_gmt":"2018-02-23T06:36:09","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2519"},"modified":"2018-02-23T14:36:09","modified_gmt":"2018-02-23T06:36:09","slug":"css-%e5%ae%9e%e7%8e%b0%e4%bb%a3%e7%a0%81%e9%ab%98%e4%ba%ae%e6%98%be%e7%a4%ba%e8%a1%8c%e6%95%b0%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2519","title":{"rendered":"CSS \u5b9e\u73b0\u4ee3\u7801\u9ad8\u4eae\u663e\u793a\u884c\u6570\u539f\u7406\u89e3\u6790"},"content":{"rendered":"<p>\n\t\u5728\u5f88\u591a\u7f16\u7a0b\u7f51\u7ad9\uff0c\u5305\u62ec\u6211\u7684\u4e2a\u4eba\u7f51\u7ad9\uff1a<a href=\"https:\/\/www.xttblog.com\" name=\"\u4e2a\u4eba\u535a\u5ba2\" target=\"_blank\" title=\"\u4e2a\u4eba\u535a\u5ba2\">\u4e1a\u4f59\u8349<\/a>\u3002\u5927\u5bb6\u90fd\u4f1a\u770b\u5230\u5f88\u591a\u4e66\u5199\u4ee3\u7801\u7684\u5730\u65b9\u8fdb\u884c\u4e86\u9ad8\u4eae\u663e\u793a\uff0c\u5e76\u4e14\u8fd8\u663e\u793a\u6709\u4ee3\u7801\u7684\u884c\u6570\u3002\u8fd9\u662f\u600e\u4e48\u5b9e\u73b0\u7684\u5462\uff1f\u672c\u6587\u5c06\u901a\u8fc7\u539f\u7406\u5c42\u9762\u4e3a\u4f60\u89e3\u6790\u3002\n<\/p>\n<p>\n\t\u6574\u4e2a\u5b9e\u73b0\u7684\u4ee3\u7801\u5f88\u7b80\u5355\uff0chtml \u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;div class=&quot;code&quot;&gt;&lt;\/div&gt;<\/pre>\n<p>\n\t\u672c\u6848\u4f8b\u7684 CSS \u5b9e\u73b0\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:css;\">\r\n.code {\r\n    padding: 10px 10px 10px 40px;\r\n    font-size: 13px;\r\n    line-height: 18px;\r\n    background-color: #eee;\r\n    font-family: &quot;Lucida Console&quot;, Consolas, Monaco;\r\n    white-space: pre-wrap;\r\n    word-break: break-all;\r\n    position: relative;\r\n    overflow: hidden;\r\n}\r\n\r\n.code::before {\r\n    content: &#039;01.\\A 02.\\A 03.\\A 04.\\A 05.\\A 06.\\A 07.\\A 08.\\A 09.\\A 10.\\A 11.\\A 12.\\A 13.\\A 14.\\A 15.\\A 16.\\A 17.\\A 18.\\A 19.\\A 20.\\A 21.\\A 22.\\A 23.\\A 24.\\A 25.\\A 26.\\A 27.\\A 28.\\A 29.\\A 30.\\A 31.\\A 32.\\A 33.\\A 34.\\A 35.\\A 36.\\A 37.\\A 38.\\A 39.\\A 40.\\A 41.\\A 42.\\A 43.\\A 44.\\A 45.\\A 46.\\A 47.\\A 48.\\A 49.\\A 50.\\A 51.\\A 52.\\A 53.\\A 54.\\A 55.\\A 56.\\A 57.\\A 58.\\A 59.\\A 60.\\A 61.\\A 62.\\A 63.\\A 64.\\A 65.\\A 66.\\A 67.\\A 68.\\A 69.\\A 70.\\A 71.\\A 72.\\A 73.\\A 74.\\A 75.\\A 76.\\A 77.\\A 78.\\A 79.\\A 80.\\A 81.\\A 82.\\A 83.\\A 84.\\A 85.\\A 86.\\A 87.\\A 88.\\A 89.\\A 90.\\A 91.\\A 92.\\A 93.\\A 94.\\A 95.\\A 96.\\A 97.\\A 98.\\A 99&#039;;\r\n    position: absolute;\r\n    top: 10px;\r\n    bottom: 10px;\r\n    left: 0;\r\n    text-align: right;\r\n    background-color: #fbfbfb;\r\n    color: #333;\r\n    outline: 100px solid #fbfbfb;\r\n    clip: rect(-100px 2em 9999px 0);\r\n    \/* IE9+ *\/\r\n    clip: rect(-100px 3.5ch 9999px 0);\r\n    overflow: hidden;\r\n}<\/pre>\n<p>\n\t\u6700\u7ec8\u7684\u8fd0\u884c\u6548\u679c\u5982\u4e0b\u6240\u793a\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"CSS \u4ee3\u7801\u9ad8\u4eae\" src=\"http:\/\/wx2.sinaimg.cn\/mw690\/4b4d632fly1fo1blhuo1pg20c40mpthj.gif\" style=\"width: 436px;height: 817px\" \/>\n<\/p>\n<p>\n\tCSS\u6784\u5efa\u4ee3\u7801\u884c\u6570\u7684\u539f\u7406\u5982\u4e0b\uff1a\n<\/p>\n<ul>\n<li>\n\t\t\u4f7f\u7528::before\u4f2a\u5143\u7d20content\u5c5e\u6027\u751f\u6210\uff0c\u8fd9\u6837\u4e0d\u7528\u62c5\u5fc3\u7f51\u9875\u6846\u9009\u590d\u5236\u4ee3\u7801\u7684\u65f6\u5019\u884c\u6570\u5e8f\u53f7\u4f1a\u6c61\u67d3\u3002\n\t<\/li>\n<li>\n\t\t\u4f7f\u7528\\A\u63a7\u5236\u5b57\u7b26\u7684\u6362\u884c\uff0c\u4e4b\u524d\u6709\u6548\u679c\u5e94\u7528\u8fc7\u6b64\u7279\u6027\uff0c\u89c1&ldquo;CSS content\u6362\u884c\u6280\u672f\u5b9e\u73b0\u5b57\u7b26animation loading\u6548\u679c&rdquo;\u3002\n\t<\/li>\n<li>\n\t\t::before\u4f2a\u5143\u7d20\u7edd\u5bf9\u5b9a\u4f4d\u5728\u5de6\u4fa7\uff0c\u7956\u5148\u5143\u7d20\u8bbe\u7f6eoverflow:hidden\u9690\u85cf\u591a\u4f59\u7684\u884c\u6570\u3002\n\t<\/li>\n<\/ul>\n<p>\n\t\u539f\u7406\u975e\u5e38\u7b80\u5355\uff0c\u8d76\u7d27\u5236\u4f5c\u4e00\u6b3e\u81ea\u5df1\u7684\u4ee3\u7801\u9ad8\u4eae\u63d2\u4ef6\u5427\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=2519\">CSS \u5b9e\u73b0\u4ee3\u7801\u9ad8\u4eae\u663e\u793a\u884c\u6570\u539f\u7406\u89e3\u6790<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u5728\u5f88\u591a\u7f16\u7a0b\u7f51\u7ad9\uff0c\u5305\u62ec\u6211\u7684\u4e2a\u4eba\u7f51\u7ad9\uff1a\u4e1a\u4f59\u8349\u3002\u5927\u5bb6\u90fd\u4f1a\u770b\u5230\u5f88\u591a\u4e66\u5199\u4ee3\u7801\u7684\u5730\u65b9\u8fdb\u884c\u4e86\u9ad8\u4eae\u663e\u793a\uff0c\u5e76\u4e14\u8fd8\u663e\u793a\u6709\u4ee3\u7801\u7684\u884c\u6570 [&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,1106],"class_list":["post-2519","post","type-post","status-publish","format-standard","hentry","category-html5","tag-css3","tag-javascript"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2519","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=2519"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2519\/revisions"}],"predecessor-version":[{"id":2520,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2519\/revisions\/2520"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}