
{"id":1595,"date":"2020-07-28T13:57:49","date_gmt":"2020-07-28T05:57:49","guid":{"rendered":"http:\/\/admin.evshou.com\/?p=1595"},"modified":"2020-08-07T16:09:47","modified_gmt":"2020-08-07T08:09:47","slug":"web%e5%89%8d%e7%ab%afcss3%e7%89%b9%e6%95%88%ef%bc%9a%e7%bf%bb%e8%bd%ac%e7%9a%84%e9%aa%b0%e5%ad%90","status":"publish","type":"post","link":"https:\/\/www.9713job.com\/?p=1595","title":{"rendered":"web\u524d\u7aefCSS3\u7279\u6548\uff1a\u7ffb\u8f6c\u7684\u9ab0\u5b50"},"content":{"rendered":"<h3>web\u524d\u7aefCSS3\u7279\u6548<\/h3>\n<p><strong>\u7ffb\u8f6c\u7684\u9ab0\u5b50<\/strong><br \/>\n\u6548\u679c\u4f53\u9a8c<a href=\"http:\/\/swq2014.github.io\/tech\/object1.html\">http:\/\/swq2014.github.io\/tech\/object1.html<\/a><\/p>\n<p>&lt;style&gt;<br \/>\n*{margin: 0;padding: 0}<br \/>\n.box{width: 100px;margin: 100px auto;}<br \/>\n.box ul{width: 100px;height: 100px;margin:100px;position: relative;animation: move 6s infinite linear;<br \/>\ntransform-style: preserve-3d;backface-visibility: hidden;}<br \/>\n.boxs{width: 100px;height: 100px;display: grid;border: 1px solid;border-radius: 8px;position: absolute;<br \/>\ngrid-template-columns: repeat(3,1fr);grid-template-rows: repeat(3,1fr);place-items:center center;<br \/>\ngrid-template-areas:<!--more--><br \/>\n&#8220;a1 a2 a3&#8221;<br \/>\n&#8220;a4 a5 a6&#8221;<br \/>\n&#8220;a7 a8 a9&#8243;;<br \/>\n}<br \/>\n@keyframes move{<br \/>\n0%{transform: rotateY(0deg);}<br \/>\n20%{transform: rotateX(360deg);}<br \/>\n30%{transform: rotateX(0deg);}<br \/>\n50%{transform: rotateY(-360deg);}<br \/>\n70%{transform: rotateY(0deg);}<br \/>\n90%{transform: rotateX(380deg);}<br \/>\n100%{transform: rotateY(0deg);}<br \/>\n}<br \/>\n.box .boxs:nth-child(1){background-color:red; top: 0px;left: 0px;}<br \/>\n.box .boxs:nth-child(2){background-color:yellow; top: 0px;left: 100px;transform:rotateY(90deg);transform-origin: left;}<br \/>\n.box .boxs:nth-child(3){background-color: green; top: 0px;right: 100px;transform:rotateY(-90deg);transform-origin: right;}<br \/>\n.box .boxs:nth-child(4){background-color: blue;top: -100px;left: 0;transform: rotateX(90deg);transform-origin: bottom;}<br \/>\n.box .boxs:nth-child(5){background-color: orange;top: 100px;left: 0;transform: rotateX(-90deg);transform-origin: top;}<br \/>\n.box .boxs:nth-child(6){background-color: #0ee; top: 0px;left: 0px;transform: translateZ(-100px) rotateY(180deg);}<br \/>\n.boxs div{width: 20px;height: 20px;border-radius: 50%;background-color: black;}<br \/>\n.box1 div{grid-area: a5!important}<br \/>\n.boxs div:last-child{grid-area: a9}<\/p>\n<p>.box3 div:nth-child(2){grid-area:a5}<\/p>\n<p>.box4 div:nth-child(2){grid-area:a3}<br \/>\n.box4 div:nth-child(3){grid-area:a7}<\/p>\n<p>.box5 div:nth-child(2){grid-area:a3}<br \/>\n.box5 div:nth-child(3){grid-area:a5}<br \/>\n.box5 div:nth-child(4){grid-area:a7}<\/p>\n<p>.box6 div:nth-child(2){grid-area:a4}<br \/>\n.box6 div:nth-child(3){grid-area:a7}<br \/>\n.box6 div:nth-child(4){grid-area:a3}<br \/>\n.box6 div:nth-child(5){grid-area:a6}<br \/>\n&lt;\/style&gt;<\/p>\n<p>&lt;div class=&#8221;box&#8221;&gt;<br \/>\n&lt;ul&gt;<br \/>\n&lt;div class=&#8221;box1 boxs&#8221;&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;box2 boxs&#8221;&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;box3 boxs&#8221;&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;box4 boxs&#8221;&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;box5 boxs&#8221;&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;box6 boxs&#8221;&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;div&gt;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/ul&gt;<br \/>\n&lt;\/div&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>web\u524d\u7aefCSS3\u7279\u6548 \u7ffb\u8f6c\u7684\u9ab0\u5b50 \u6548\u679c\u4f53\u9a8chttp:\/\/swq2014.github.io\/tech\/obj [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-1595","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts\/1595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1595"}],"version-history":[{"count":6,"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts\/1595\/revisions"}],"predecessor-version":[{"id":1803,"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts\/1595\/revisions\/1803"}],"wp:attachment":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}