{"id":14,"date":"2026-05-24T12:04:48","date_gmt":"2026-05-24T04:04:48","guid":{"rendered":"https:\/\/dh114.fun\/web\/blog\/?p=14"},"modified":"2026-05-24T12:04:48","modified_gmt":"2026-05-24T04:04:48","slug":"github%e6%b3%a8%e5%86%8c%e9%a1%b5%e5%90%8c%e6%ac%be%e5%8a%a8%e6%80%81%e6%98%9f%e7%a9%ba%e8%83%8c%e6%99%af%ef%bc%8c%e9%99%84%e5%ae%8c%e6%95%b4%e6%ba%90%e7%a0%81%e3%80%82","status":"publish","type":"post","link":"https:\/\/dh114.fun\/web\/blog\/?p=14","title":{"rendered":"GitHub\u6ce8\u518c\u9875\u540c\u6b3e\u52a8\u6001\u661f\u7a7a\u80cc\u666f\uff0c\u9644\u5b8c\u6574\u6e90\u7801\u3002"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-15 aligncenter\"  src=\"https:\/\/dh114.fun\/web\/blog\/wp-content\/themes\/lolimeow-master\/assets\/images\/loading.gif\" data-src=\"https:\/\/dh114.fun\/web\/blog\/wp-content\/uploads\/2026\/05\/IMG_20260524_115031-159x300.jpg\" class=\"lazy\" loading=\"lazy\" alt=\"GitHub\u6ce8\u518c\u9875\u540c\u6b3e\u661f\u7a7a\u80cc\u666f\" srcset=\"https:\/\/dh114.fun\/web\/blog\/wp-content\/uploads\/2026\/05\/IMG_20260524_115031-159x300.jpg 159w, https:\/\/dh114.fun\/web\/blog\/wp-content\/uploads\/2026\/05\/IMG_20260524_115031-544x1024.jpg 544w, https:\/\/dh114.fun\/web\/blog\/wp-content\/uploads\/2026\/05\/IMG_20260524_115031.jpg 713w\" sizes=\"(max-width: 159px) 100vw, 159px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u4e00\u3001\u7b80\u5355\u4ecb\u7ecd<\/p>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u4efd\u661f\u7a7a\u80cc\u666f\u6548\u679c\u4f9d\u6258CSS\u5b9e\u73b0\uff0c\u4e0d\u4f9d\u8d56\u4efb\u4f55\u7b2c\u4e09\u65b9JS\u63d2\u4ef6\u3002<\/p>\n<p>\u6574\u4f53\u5168\u5c4f\u56fa\u5b9a\u5728\u9875\u9762\u5e95\u5c42\uff0c\u4e0d\u4f1a\u906e\u6321\u9875\u9762\u6b63\u5e38\u5185\u5bb9\u5c55\u793a\uff0c\u901a\u7528\u6027\u5f88\u5f3a\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e8c\u3001\u4ee3\u7801\u6765\u6e90<\/p>\n<p>&nbsp;<\/p>\n<p>\u6548\u679c\u539f\u578b\u53d6\u81eaGitHub\u5b98\u7f51\u6ce8\u518c\u9875\u9762\u80cc\u666f\u52a8\u753b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e09\u3001\u4f7f\u7528\u65b9\u5f0f<\/p>\n<p>&nbsp;<\/p>\n<p>1.\u4e0b\u8f7d\u4e0b\u65b9\u7684\u538b\u7f29\u5305\u5e76\u590d\u5236\u5176\u4e2d\u7684&#8221;preview.gif&#8221;\u548c&#8221;hero-glow.svg&#8221;\u5230\u4f60\u7684\u9879\u76ee\u4e2d\u3002<\/p>\n<p>2.\u7c98\u8d34\u4e0b\u65b9\u7684css\u4ee3\u7801\u5230\u4f60\u7684css\u6587\u4ef6\uff0c\u6216\u4f7f\u7528style\u6807\u7b7e\u5f15\u5165\u3002<\/p>\n<p>3.\u7c98\u8d34\u4e0b\u65b9\u7684html\u4ee3\u7801\u5230body\u6807\u7b7e\u7684\u5e95\u90e8\u3002<\/p>\n<p>4.\u5982\u4e0d\u9700\u8981\u5149\u6655\u53ef\u4ee5\u5220\u9664<\/p>\n<p>&lt;img src=&#8221;hero-glow.svg&#8221; alt=&#8221;\u661f\u7a7a\u53d1\u5149\u6548\u679c&#8221; data-nopindex class=&#8221;star-glow&#8221;&gt;<\/p>\n<p>\u8fd9\u4e00\u884c\u4ee3\u7801\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee3\u7801\u53ca\u8d44\u6e90\uff1a<\/p>\n<a href=\"https:\/\/dh114.fun\/download\/starry_sky.zip\" rel=\"noopener\" target=\"_blank\" class=\"download_btn btn-tooltip\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"\u8be5\u8d44\u6e90\u6765\u6e90\u4e8e\u7f51\u7edc\u5982\u6709\u4fb5\u6743,\u8bf7\u8054\u7cfb\u5220\u9664.\" data-container=\"body\" data-animation=\"true\">\u4e0b\u8f7d<\/a>\n<p>css:<\/p>\n<pre class=\"prettyprint linenums\"><\/p>\n<p>\/* GitHub\u6ce8\u518c\u9875\u540c\u6b3e\u661f\u7a7a\u80cc\u666f *\/<\/p>\n<p>body {<\/p>\n<p>background: black;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>.bg-container {<\/p>\n<p>position: fixed;<\/p>\n<p>top: 0;<\/p>\n<p>left: 0;<\/p>\n<p>width: 100vw;<\/p>\n<p>height: 100vh;<\/p>\n<p>z-index: -1;<\/p>\n<p>overflow: hidden;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>.signup-space {<\/p>\n<p>position: absolute;<\/p>\n<p>top: 0;<\/p>\n<p>right: 0;<\/p>\n<p>bottom: 0;<\/p>\n<p>left: 0;<\/p>\n<p>overflow: hidden;<\/p>\n<p>z-index: 1;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>.signup-stars {<\/p>\n<p>position: absolute;<\/p>\n<p>top: 0;<\/p>\n<p>right: 0;<\/p>\n<p>bottom: 0;<\/p>\n<p>left: 0;<\/p>\n<p>overflow: hidden;<\/p>\n<p>background-image:<\/p>\n<p>radial-gradient(2px 2px at 50px 200px, #eee, rgba(0, 0, 0, 0)),<\/p>\n<p>radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),<\/p>\n<p>radial-gradient(3px 4px at 120px 40px, #ddd, rgba(0, 0, 0, 0));<\/p>\n<p>background-repeat: repeat;<\/p>\n<p>background-size: 250px 250px;<\/p>\n<p>opacity: 0;<\/p>\n<p>animation: zoom 10s infinite;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>.signup-stars:nth-child(1) {<\/p>\n<p>background-position: 10% 90%;<\/p>\n<p>animation-delay: 0s;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>.signup-stars:nth-child(2) {<\/p>\n<p>background-position: 20% 50%;<\/p>\n<p>background-size: 270px 500px;<\/p>\n<p>animation-delay: 0.3s;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>.signup-stars:nth-child(3) {<\/p>\n<p>background-position: 40% -80%;<\/p>\n<p>animation-delay: 1.2s;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>.signup-stars:nth-child(4) {<\/p>\n<p>background-position: -20% -30%;<\/p>\n<p>transform: rotate(60deg);<\/p>\n<p>animation-delay: 2.5s;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>.signup-stars:nth-child(5) {<\/p>\n<p>background-image:<\/p>\n<p>radial-gradient(2px 2px at 10px 100px, #eee, rgba(0, 0, 0, 0)),<\/p>\n<p>radial-gradient(2px 2px at 20px 10px, #fff, rgba(0, 0, 0, 0)),<\/p>\n<p>radial-gradient(3px 4px at 150px 40px, #ddd, rgba(0, 0, 0, 0));<\/p>\n<p>background-position: 80% 30%;<\/p>\n<p>animation-delay: 4s;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>.signup-stars:nth-child(6) {<\/p>\n<p>background-position: 50% 20%;<\/p>\n<p>animation-delay: 6s;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>@keyframes zoom {<\/p>\n<p>0% {<\/p>\n<p>opacity: 0;<\/p>\n<p>transform: scale(0.5) rotate(5deg);<\/p>\n<p>animation-timing-function: ease-in;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>85% {<\/p>\n<p>opacity: 1;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>100% {<\/p>\n<p>opacity: 0.2;<\/p>\n<p>transform: scale(2.2);<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>.star-glow {<\/p>\n<p>position: absolute;<\/p>\n<p>top: 50%;<\/p>\n<p>left: 50%;<\/p>\n<p>width: 200%;<\/p>\n<p>transform: translate(-50%, -50%);<\/p>\n<p>overflow: hidden;<\/p>\n<p>pointer-events: none;<\/p>\n<p>z-index: 0;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>@media (prefers-reduced-motion) {<\/p>\n<p>.signup-stars {<\/p>\n<p>animation: none;<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p><\/pre>\n<p>html:<\/p>\n<pre class=\"prettyprint linenums\"><\/p>\n<p>&lt;!&#8211; \u661f\u7a7a\u80cc\u666f\u5bb9\u5668 &#8211;&gt;<\/p>\n<p>&lt;div class=&#8221;bg-container&#8221;&gt;<\/p>\n<p>&lt;div class=&#8221;signup-space&#8221;&gt;<\/p>\n<p>&lt;div class=&#8221;signup-stars&#8221;&gt;&lt;\/div&gt;<\/p>\n<p>&lt;div class=&#8221;signup-stars&#8221;&gt;&lt;\/div&gt;<\/p>\n<p>&lt;div class=&#8221;signup-stars&#8221;&gt;&lt;\/div&gt;<\/p>\n<p>&lt;div class=&#8221;signup-stars&#8221;&gt;&lt;\/div&gt;<\/p>\n<p>&lt;div class=&#8221;signup-stars&#8221;&gt;&lt;\/div&gt;<\/p>\n<p>&lt;div class=&#8221;signup-stars&#8221;&gt;&lt;\/div&gt;<\/p>\n<p>&lt;\/div&gt;<\/p>\n<p>&lt;img src=&#8221;.\/hero-glow.svg&#8221; alt=&#8221;\u661f\u7a7a\u53d1\u5149\u6548\u679c&#8221; data-nopindex class=&#8221;star-glow&#8221;&gt;<\/p>\n<p>&lt;\/div&gt;<\/p>\n<p><\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u6574\u4f53\u8f7b\u91cf\u5316\uff0c\u52a0\u8f7d\u65e0\u538b\u529b\uff0c\u9002\u914d\u79fb\u52a8\u7aef\u548c\u7535\u8111\u7aef\uff0c\u9002\u5408\u7528\u4f5c\u4e2a\u4eba\u4e3b\u9875\u3001\u535a\u5ba2\u9996\u9875\u80cc\u666f\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u4e00\u3001\u7b80\u5355\u4ecb\u7ecd &nbsp; \u8fd9\u4efd\u661f\u7a7a\u80cc\u666f\u6548\u679c\u4f9d\u6258CSS\u5b9e\u73b0\uff0c\u4e0d\u4f9d\u8d56\u4efb\u4f55\u7b2c\u4e09\u65b9JS\u63d2\u4ef6\u3002 \u6574\u4f53\u5168\u5c4f\u56fa\u5b9a\u5728\u9875\u9762\u5e95\u5c42\uff0c\u4e0d\u4f1a\u906e\u6321\u9875\u9762\u6b63\u5e38\u5185\u5bb9\u5c55\u793a\uff0c\u901a\u7528\u6027\u5f88\u5f3a\u3002 &nbsp; \u4e8c\u3001\u4ee3\u7801\u6765\u6e90 &nbsp; \u6548\u679c\u539f\u578b\u53d6\u81eaGitHub\u5b98\u7f51\u6ce8\u518c\u9875\u9762\u80cc\u666f\u52a8\u753b\u3002 &nbsp; \u4e09\u3001\u4f7f\u7528\u65b9\u5f0f &nbsp; 1.\u4e0b\u8f7d\u4e0b\u65b9\u7684\u538b\u7f29\u5305\u5e76\u590d\u5236\u5176\u4e2d\u7684&#8221;preview.gif&#8221;\u548c&#8221;he [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":15,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"%%post_title%%- %%sitetitle%%","_seopress_titles_desc":"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u7eafCSS\u4ee3\u7801\u5b9e\u73b0GitHub\u6ce8\u518c\u9875\u540c\u6b3e\u7684\u52a8\u6001\u661f\u7a7a\u80cc\u666f\u6548\u679c\u3002\u8fd9\u4e2a\u8f7b\u91cf\u7ea7\u65b9\u6848\u65e0\u9700\u4efb\u4f55JavaScript\u63d2\u4ef6\uff0c\u5b8c\u5168\u54cd\u5e94\u5f0f\u8bbe\u8ba1\uff0c\u9002\u5408\u4f5c\u4e3a\u4e2a\u4eba\u4e3b\u9875\u3001\u535a\u5ba2\u3001\u4f5c\u54c1\u96c6\u6216\u767b\u5f55\u9875\u9762\u7684\u80cc\u666f\u88c5\u9970\u3002\u6559\u7a0b\u5305\u542b\u5b8c\u6574\u6e90\u7801\u3001\u4f7f\u7528\u6b65\u9aa4\u548c\u4e2a\u6027\u5316\u5b9a\u5236\u5efa\u8bae\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u8f7b\u677e\u4e3a\u7f51\u9875\u589e\u6dfb\u6df1\u9083\u8ff7\u4eba\u7684\u661f\u7a7a\u52a8\u753b\u6548\u679c\u3002","_seopress_robots_index":"","_seopress_analysis_target_kw":"","footnotes":""},"categories":[2],"tags":[4,5,3],"class_list":["post-14","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2","tag-4","tag-5","tag-3"],"_links":{"self":[{"href":"https:\/\/dh114.fun\/web\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dh114.fun\/web\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dh114.fun\/web\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dh114.fun\/web\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dh114.fun\/web\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14"}],"version-history":[{"count":3,"href":"https:\/\/dh114.fun\/web\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":18,"href":"https:\/\/dh114.fun\/web\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14\/revisions\/18"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dh114.fun\/web\/blog\/index.php?rest_route=\/wp\/v2\/media\/15"}],"wp:attachment":[{"href":"https:\/\/dh114.fun\/web\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dh114.fun\/web\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dh114.fun\/web\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}