{"id":119,"date":"2023-07-25T10:31:53","date_gmt":"2023-07-25T02:31:53","guid":{"rendered":"http:\/\/guozining.cn\/?p=119"},"modified":"2023-07-25T10:48:16","modified_gmt":"2023-07-25T02:48:16","slug":"html%e9%83%a8%e5%88%86%ef%bc%9a","status":"publish","type":"post","link":"https:\/\/guozining.cn\/index.php\/2023\/07\/25\/html%e9%83%a8%e5%88%86%ef%bc%9a\/","title":{"rendered":"\u7eafCSS\u521b\u5efa\u7acb\u4f533D\u52a8\u6001\u5b57\u4f53"},"content":{"rendered":"\n<p><strong>Html\u90e8\u5206\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n\t&lt;head&gt;\n\t\t&lt;meta charset=\"utf-8\"&gt;\n\t\t&lt;title&gt;\u52a8\u6001\u5b57\u4f53&lt;\/title&gt;\n\t\t&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"index.css\"\/&gt;\n\t&lt;\/head&gt;\n\t&lt;body&gt;\n\t\t&lt;h1&gt;Best Look&lt;\/h1&gt;\n\t\t&lt;h2&gt;Yeah 666!&lt;\/h2&gt;\n\t&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p><strong>CSS\u90e8\u5206\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>:root {\n\tfont-size: 32px;\n}\n\nbody {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tmin-height: 100vh;\n\tflex-direction: column;\n\tbackground-color: #33ff00;\n\tfont-family: \"arial, helvetica, sans-serif\";\n\tperspective: 2500px;\n}\n\nh1, h2 {\n\tposition: relative;\n\tpadding: 0;\n\tmargin: 0;\n\tcolor: #fff;\n}\n\nh1 {\n\tfont-size: 6rem;\n\tanimation: 5s bast ease-in-out infinite;\n}\n\n@keyframes bast{\n\t0%, 100% {\n\t\ttransform: rotate3d(0, 1, 0, -20deg);\n\t}\n\t50% {\n\t\ttransform: rotate3d(0, 1, 0, 20deg);\n\t}\n}\n\nh2 {\n\tfont-size: 3rem;\n\tletter-spacing: -4px;\n\tanimation: 2.5s ye ease-in-out infinite;\n}\n\n@keyframes ye {\n\t0% 100% {\n\t\ttransform: translate3d(1, 0, 0, -10deg);\n\t}\n\t50% {\n\t\ttransform: rotate3d(1, 0, 0, 10deg);\n\t}\n}\n\nh1::before,\nh1::after {\n\tcontent: 'Best Look';\n}\n\nh2::before,\nh2::after {\n\tcontent: 'Yeah 666!';\n}\n\nh1::before,\nh1::after,\nh2::before,\nh2::after {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n}\n\nh1::before {\n\tcolor: #9900ff;\n\tz-index: -3;\n\tanimation: 5s h1-before ease-in-out infinite;\n}\n\n@keyframes h1-before {\n\t0%, 100% {\n\t\ttransform: translate3d(15px, 5px, -10px);\n\t}\n\t50% {\n\t\ttransform: translate3d(-15px, 5px, -10px);\n\t}\n}\n\nh1::after {\n\tcolor: #330033;\n\tz-index: -4;\n\tanimation: 5s h1-after ease-in-out infinite;\n}\n\n@keyframes h1-after {\n    0%, 100% {\n\t\ttransform: translate3d(30px, 10px, -20px);\n\t}\n\t50% {\n\t\ttransform: translate3d(-30px, 10px, -20px);\n\t}\n}\n\nh2::before {\n\tcolor: #00ccff;\n\tz-index: -1;\n\tanimation: 2.5s h2-before ease-in-out infinite;\n}\n\n@keyframes h2-before {\n\t0%, 100% {\n\t\ttransform: translate3d(0px, 6px, -10px);\n\t}\n\t50% {\n\t\ttransform: translate3d(0px, -3px, -10px);\n\t}\n}\n\nh2::after {\n\tcolor: #000ccc;\n\tz-index: -2;\n\tanimation: 2.5s h2-after ease-in-out infinite;\n}\n\n@keyframes h2-after {\n\t0%, 100% {\n\t\ttransform: translate3d(0px, 12px, -20px);\n\t}\n\t50% {\n\t\ttransform: translate3d(0px, -6px, -20px);\n\t}\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong><em>\u6548\u679c\u56fe\uff1a<\/em><\/strong>\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='http:\/\/guozining.cn\/wp-content\/uploads\/2023\/07\/2188462-20210310164551998-979737325-1024x484.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"484\" data-original=\"http:\/\/guozining.cn\/wp-content\/uploads\/2023\/07\/2188462-20210310164551998-979737325-1024x484.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-120\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Html\u90e8\u5206\uff1a CSS\u90e8\u5206\uff1a \u6548\u679c\u56fe\uff1a<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[16,15],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-14","tag-css","tag-html"],"_links":{"self":[{"href":"https:\/\/guozining.cn\/index.php\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guozining.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guozining.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guozining.cn\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/guozining.cn\/index.php\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":5,"href":"https:\/\/guozining.cn\/index.php\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/guozining.cn\/index.php\/wp-json\/wp\/v2\/posts\/119\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/guozining.cn\/index.php\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guozining.cn\/index.php\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guozining.cn\/index.php\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}