{"id":53059,"date":"2024-12-03T15:06:04","date_gmt":"2024-12-03T07:06:04","guid":{"rendered":"https:\/\/fwq.ai\/blog\/53059\/"},"modified":"2024-12-03T15:06:04","modified_gmt":"2024-12-03T07:06:04","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-html-%e5%92%8c-css-%e5%88%9b%e5%bb%ba%e7%bf%bb%e9%a1%b5%e5%8d%a1%e5%8a%a8%e7%94%bb","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/53059\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 HTML \u548c CSS \u521b\u5efa\u7ffb\u9875\u5361\u52a8\u753b"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5982\u4f55\u4f7f\u7528 HTML \u548c CSS \u521b\u5efa\u7ffb\u9875\u5361\u52a8\u753b<\/h1>\n<p><span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span>    <\/p>\n<p>\u5bf9\u4e8e\u4e00\u4e2a\u6587\u7ae0\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u7262\u56fa\u624e\u5b9e\u7684\u57fa\u7840\u662f\u5341\u5206\u91cd\u8981\u7684\uff0c\u7c73\u4e91\u5c31\u6765\u5e26\u5927\u5bb6\u4e00\u70b9\u70b9\u7684\u638c\u63e1\u57fa\u7840\u77e5\u8bc6\u70b9\u3002\u4eca\u5929\u672c\u7bc7\u6587\u7ae0\u5e26\u5927\u5bb6\u4e86\u89e3\u300a\u5982\u4f55\u4f7f\u7528 HTML \u548c CSS \u521b\u5efa\u7ffb\u9875\u5361\u52a8\u753b\u300b\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e86\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u5feb\u70b9\u6536\u85cf\u8d77\u6765\u5427\uff0c\u5426\u5219\u9700\u8981\u65f6\u5c31\u627e\u4e0d\u5230\u4e86\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241126\/173259073367453c8d3076d.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u4f7f\u7528 HTML \u548c CSS \u521b\u5efa\u7ffb\u9875\u5361\u52a8\u753b\u63d2\u56fe\" alt=\"\u5982\u4f55\u4f7f\u7528 HTML \u548c CSS \u521b\u5efa\u7ffb\u9875\u5361\u52a8\u753b\u63d2\u56fe\" \/><\/p>\n<p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u4e86\u89e3\u5982\u4f55\u4f7f\u7528 html \u548c css \u4ee5\u53ca\u6e10\u53d8\u80cc\u666f\u521b\u5efa\u65f6\u5c1a\u7684 3d \u7ffb\u8f6c\u5361\u7247\u52a8\u753b\u3002<\/p>\n<p>\u8bbf\u95ee\u6211\u7684\u7f51\u7ad9<\/p>\n<h2> \u4e86\u89e3\u7ed3\u6784 <\/h2>\n<p>\u6211\u4eec\u5c06\u4f7f\u7528\u5361\u7247\u7684\u4e24\u4fa7\uff08\u6b63\u9762\u548c\u80cc\u9762\uff09\u6765\u521b\u5efa\u7ffb\u8f6c\u6548\u679c\u3002\u6b64\u6548\u679c\u5c06\u5728\u60ac\u505c\u65f6\u4f7f\u7528 css \u8fc7\u6e21\u6fc0\u6d3b\u3002<\/p>\n<pre>&lt;div class=\"card\"&gt;\n    &lt;div class=\"card-side front\"&gt;\n      &lt;div&gt;front side&lt;\/div&gt;\n    &lt;\/div&gt;\n    &lt;div class=\"card-side back\"&gt;\n      &lt;div&gt;back side&lt;\/div&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n<\/pre>\n<p>\u8fd9\u4e2a\u7b80\u5355\u7684 html \u7ed3\u6784\u5305\u542b\u4e00\u4e2a\u5177\u6709\u4e24\u4fa7\u7684 div \u5143\u7d20\uff1a\u4e00\u4fa7\u4e3a\u6b63\u9762\uff0c\u4e00\u4fa7\u4e3a\u80cc\u9762\u3002<\/p>\n<pre>.card {\n    perspective: 150rem;\n    position: relative;\n    height: 40rem;\n    max-width: 400px;\n    margin: 2rem;\n    box-shadow: none;\n    background: none;\n  }\n\n.card-side {\n    height: 35rem;\n    border-radius: 15px;\n    transition: all 0.8s ease;\n    backface-visibility: hidden;\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 80%;\n    padding: 2rem;\n    color: white;\n}\n\n.card-side.back {\n    transform: rotateY(-180deg);\n    background-color: #4158D0;\n    background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%,#FFCC70 100%);\n}\n\n.card-side.front {\n    background-color: #0093E9;\n    background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);\n}\n\n.card:hover .card-side.front {\n    transform: rotateY(180deg);\n}\n\n.card:hover .card-side.back {\n    transform: rotateY(0deg);\n}\n<\/pre>\n<p>\u73b0\u573a\u6f14\u793a<\/p>\n<p>backface-visibility\uff1a\u5f53\u6b63\u9762\u53ef\u89c1\u65f6\u9690\u85cf\u5361\u7247\u80cc\u9762\u7684\u5185\u5bb9\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002<\/p>\n<p>\u5c06\u5361\u7247\u80cc\u9762\u7684rotatey()\u8bbe\u7f6e\u4e3a-180deg\uff0c\u5c06\u6b63\u9762\u8bbe\u7f6e\u4e3a0deg\u3002<\/p>\n<p>\u900f\u89c6\uff1a\u901a\u8fc7\u8ba9\u5361\u7247\u770b\u8d77\u6765\u5c31\u50cf\u5728\u7a7a\u95f4\u4e2d\u7ffb\u8f6c\u4e00\u6837\u589e\u52a0 3d \u6548\u679c\u7684\u6df1\u5ea6\u3002<\/p>\n<p>\u60ac\u505c\u65f6\uff0c\u5c06\u524d\u4fa7\u7684rotatey()\u8bbe\u7f6e\u4e3a180\u5ea6\uff0c\u540e\u4fa7\u8bbe\u7f6e\u4e3a0\u5ea6\u3002<\/p>\n<h2> \u7ed3\u8bba <\/h2>\n<p>\u53ea\u9700\u51e0\u884c html \u548c css\uff0c\u60a8\u5c31\u53ef\u4ee5\u521b\u5efa\u4ee4\u4eba\u60ca\u53f9\u7684 3d \u7ffb\u8f6c\u5361\u7247\u52a8\u753b\uff0c\u4e3a\u60a8\u7684\u7f51\u7ad9\u589e\u6dfb\u52a8\u6001\u611f\u3002\u5c1d\u8bd5\u5c1d\u8bd5\u989c\u8272\u548c\u6548\u679c\uff0c\u4f7f\u5176\u72ec\u4e00\u65e0\u4e8c<\/p>\n<p>\u4eca\u5929\u5173\u4e8e\u300a\u5982\u4f55\u4f7f\u7528 HTML \u548c CSS \u521b\u5efa\u7ffb\u9875\u5361\u52a8\u753b\u300b\u7684\u5185\u5bb9\u5c31\u4ecb\u7ecd\u5230\u8fd9\u91cc\u4e86\uff0c\u662f\u4e0d\u662f\u5b66\u8d77\u6765\u4e00\u76ee\u4e86\u7136\uff01\u60f3\u8981\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u7684\u5185\u5bb9\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01<\/p>\n<p>      \u7248\u672c\u58f0\u660e \u672c\u6587\u8f6c\u8f7d\u4e8e\uff1adev.to \u5982\u6709\u4fb5\u72af\uff0c\u8bf7\u8054\u7cfb\u5220\u9664    <\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   win11\u78c1\u76d8\u5185\u5b58\u4fe1\u606f\u4e0d\u663e\u793a\u600e\u4e48\u529e\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u4f7f\u7528 HTML \u548c CSS \u521b\u5efa\u7ffb\u9875\u5361\u52a8\u753b \u6536\u85cf \u5bf9\u4e8e\u4e00\u4e2a\u6587\u7ae0\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u7262\u56fa\u624e\u5b9e\u7684\u57fa\u7840\u662f\u5341\u5206\u91cd\u8981\u7684\uff0c\u7c73\u4e91\u5c31\u6765\u5e26\u5927\u5bb6\u4e00\u70b9\u70b9\u7684\u638c\u63e1\u57fa\u7840\u77e5\u8bc6\u70b9\u3002\u4eca\u5929\u672c\u7bc7\u6587\u7ae0\u5e26\u5927\u5bb6\u4e86\u89e3\u300a\u5982\u4f55\u4f7f\u7528 HTML \u548c CSS \u521b\u5efa\u7ffb\u9875\u5361\u52a8\u753b\u300b\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e86\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u5feb\u70b9\u6536\u85cf\u8d77\u6765\u5427\uff0c\u5426\u5219\u9700\u8981\u65f6\u5c31\u627e\u4e0d\u5230\u4e86\uff01 \u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u4e86\u89e3\u5982\u4f55\u4f7f\u7528 html \u548c css \u4ee5\u53ca\u6e10\u53d8\u80cc\u666f\u521b\u5efa\u65f6\u5c1a\u7684 3d \u7ffb\u8f6c\u5361\u7247\u52a8\u753b\u3002 \u8bbf\u95ee\u6211\u7684\u7f51\u7ad9 \u4e86\u89e3\u7ed3\u6784 \u6211\u4eec\u5c06\u4f7f\u7528\u5361\u7247\u7684\u4e24\u4fa7\uff08\u6b63\u9762\u548c\u80cc\u9762\uff09\u6765\u521b\u5efa\u7ffb\u8f6c\u6548\u679c\u3002\u6b64\u6548\u679c\u5c06\u5728\u60ac\u505c\u65f6\u4f7f\u7528 css \u8fc7\u6e21\u6fc0\u6d3b\u3002 &lt;div class=&#8221;card&#8221;&gt; &lt;div class=&#8221;card-side front&#8221;&gt; &lt;div&gt;front side&lt;\/div&gt; &lt;\/div&gt; &lt;div class=&#8221;card-side back&#8221;&gt; &lt;div&gt;back side&lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; \u8fd9\u4e2a\u7b80\u5355\u7684 html \u7ed3\u6784\u5305\u542b\u4e00\u4e2a\u5177\u6709\u4e24\u4fa7\u7684 div \u5143\u7d20\uff1a\u4e00\u4fa7\u4e3a\u6b63\u9762\uff0c\u4e00\u4fa7\u4e3a\u80cc\u9762\u3002 .card { perspective: 150rem; position: relative; height: 40rem; max-width: 400px; margin: 2rem; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-53059","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=53059"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53059\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=53059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=53059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=53059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}