【Html網頁模板】HTML炫酷星空(一閃一閃亮晶晶)

在這里插入圖片描述

文章目錄

    • 專欄導讀
    • 功能預覽
    • 快速開始
    • 核心實現拆解
      • 1. 背景與基礎布局
      • 2. 背景層靜態星空(輕微閃爍)
      • 3. 前景層“亮晶晶”的閃爍小星星
      • 4. 交互與動效
      • 5. 行星裝飾
    • 可配置項與個性化建議
    • 初始化順序(入口)
    • 源碼
    • 結語

專欄導讀

🔥🔥本文已收錄于《30天學習Python從入門到精通》

🉑🉑本專欄專門針對于零基礎和需要重新復習鞏固的同學所準備的一套基礎班教學,從0基礎到精通Python,輕松掌握Python,歡迎各位同學訂閱,專欄訂閱地址:點我直達

🤞🤞此外如果您已工作,如需利用Python解決辦公中常見的問題,歡迎訂閱《Python辦公自動化》專欄,訂閱地址:點我直達

  • 本文基于項目文件 ,帶你快速拆解并實現一個具有星空背景、星星閃爍、鼠標視差與點擊漣漪特效的炫酷首頁。全文只有一個 HTML 文件,結構清晰、易于拓展。

功能預覽

  • 星空背景與漂浮行星裝飾
  • 兩層星空:
    • 背景層靜態星星(輕微閃爍)
    • 前景層“隨機小星星一閃一閃亮晶晶”(多色柔光小星星,節奏隨機)
  • 鼠標移動產生輕微視差效果
  • 點擊任意位置出現漣漪特效
  • 響應式布局與現代 UI 風格按鈕

快速開始

  1. 目錄結構(單文件):
1-炫酷星空首頁/
└── index.html
  1. 本地預覽(任選其一):
  • 直接雙擊打開 index.html
  • 或在該目錄啟動本地服務器并訪問 http://localhost:8000/

核心實現拆解

1. 背景與基礎布局

  • 使用漸變背景營造深邃的宇宙氛圍:
body {height: 100vh;background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);overflow: hidden;font-family: 'Arial', sans-serif;
}
  • 兩層主要容器:
    • .starfield:底層靜態星星
    • .shooting-stars:前景閃爍小星星(已無流星動畫,僅承載“亮晶晶”)

2. 背景層靜態星空(輕微閃爍)

CSS:

.star { position: absolute; background: white; border-radius: 50%; animation: twinkle 2s infinite alternate; }
@keyframes twinkle { 0% {opacity: .3; transform: scale(1);} 100% {opacity: 1; transform: scale(1.2);} }

JS 生成:

function createStars(){const starfield = document.getElementById('starfield');const numStars = 200;for(let i=0;i<numStars;i++){const star = document.createElement('div');star.className='star';const size = Math.random()*3+1;star.style.cssText = `width:${size}px;height:${size}px;left:${Math.random()*100}%;top:${Math.random()*100}%;`;star.style.animationDelay = Math.random()*2+'s';star.style.animationDuration = (Math.random()*3+2)+'s';starfield.appendChild(star);}
}

3. 前景層“亮晶晶”的閃爍小星星

  • 多色小星星樣式(藍/白/黃/粉,帶柔和光暈):
.twinkling-star{position:absolute;border-radius:50%;animation:sparkle ease-in-out infinite;background: radial-gradient(circle,#fff 0%,#87ceeb 60%,transparent 100%);} /* 默認藍調 */
.twinkling-star.color-blue{box-shadow:0 0 10px #87ceeb,0 0 20px rgba(135,206,235,.5);} 
.twinkling-star.color-white{background:radial-gradient(circle,#fff 0%,#f0f8ff 60%,transparent 100%);box-shadow:0 0 8px #fff,0 0 16px rgba(255,255,255,.4);} 
.twinkling-star.color-yellow{background:radial-gradient(circle,#fff 0%,#ffd700 60%,transparent 100%);box-shadow:0 0 8px #ffd700,0 0 16px rgba(255,215,0,.4);} 
.twinkling-star.color-pink{background:radial-gradient(circle,#fff 0%,#ff69b4 60%,transparent 100%);box-shadow:0 0 8px #ff69b4,0 0 16px rgba(255,105,180,.4);} 
@keyframes sparkle{0%,100%{opacity:.3;transform:scale(.8);filter:brightness(1);}25%{opacity:.8;transform:scale(1.2);filter:brightness(1.5);}50%{opacity:1;transform:scale(1.4);filter:brightness(2);}75%{opacity:.6;transform:scale(1.1);filter:brightness(1.2);} }
  • 生成與節奏微調:
function createTwinklingStars(){const container = document.getElementById('shooting-stars');const count = 80; // 調整數量const colors = ['color-blue','color-white','color-yellow','color-pink'];for(let i=0;i<count;i++){const s = document.createElement('div');s.className = 'twinkling-star ' + colors[Math.floor(Math.random()*colors.length)];const size = Math.random()*2+1; // 1-3pxs.style.cssText = `width:${size}px;height:${size}px;left:${Math.random()*100}%;top:${Math.random()*100}%`;s.style.animationDuration = (Math.random()*2+1.5)+'s';s.style.animationDelay = (Math.random()*3)+'s';container.appendChild(s);}
}
function updateTwinklingRhythm(){document.querySelectorAll('.twinkling-star').forEach(s=>{const size = Math.max(1, Math.min(3, (parseFloat(s.style.width)|| (Math.random()*2+1)) + (Math.random()*0.6-0.3)));s.style.width=size+'px'; s.style.height=size+'px';s.style.animationDuration=(Math.random()*2+1.2)+'s';s.style.animationDelay=(Math.random()*2)+'s';});setTimeout(updateTwinklingRhythm, 3000 + Math.random()*2000);
}
效果:多色小星遍布全屏,大小/節奏輕微起伏,呈現“亮晶晶”的律動感。

4. 交互與動效

  • 鼠標視差:
document.addEventListener('mousemove', e=>{const stars = document.querySelectorAll('.star');const mx=e.clientX/window.innerWidth, my=e.clientY/window.innerHeight;stars.forEach((st,i)=>{const speed=(i%5+1)*0.5; st.style.transform=`translate(${(mx-.5)*speed}px, ${(my-.5)*speed}px)`;});
});
  • 點擊漣漪:
document.addEventListener('click', e=>{const ripple=document.createElement('div');ripple.style.cssText = `position:absolute;left:${e.clientX}px;top:${e.clientY}px;width:0;height:0;border:2px solid rgba(135,206,235,.6);border-radius:50%;transform:translate(-50%,-50%);animation:ripple 1s ease-out;pointer-events:none;z-index:100;`;document.body.appendChild(ripple); setTimeout(()=>document.body.removeChild(ripple),1000);
});
/* 補充關鍵幀 */
@keyframes ripple{0%{width:0;height:0;opacity:1;}100%{width:100px;height:100px;opacity:0;}}

5. 行星裝飾

通過兩個絕對定位的圓形漸變塊制造“遠處行星”的氛圍,并加輕微浮動動畫:

.planet{position:absolute;border-radius:50%;background:radial-gradient(circle at 30% 30%,#4a90e2,#2c5aa0);box-shadow:0 0 50px rgba(74,144,226,.3);animation:float 6s ease-in-out infinite;}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-20px)}}

可配置項與個性化建議

  • 星星數量:createTwinklingStars 中的 count(默認 80)
  • 星星大小:生成時的 size 以及 sparkle 動畫中的 scale 值
  • 閃爍節奏:animationDurationanimationDelay 的隨機范圍
  • 顏色風格:colors 數組可自由增刪(如全藍、冷白、金黃等)
  • 移動端優化:
    • 適當降低星星數量與發光強度
    • 避免同時疊加過多陰影層

小提示:當前文件中保留了一個針對 .meteor 的 will-change 性能提示樣式(來源于早期“流星”版本),僅作為示例存在,不影響當前效果。如需更嚴謹可改成對 .twinkling-star 使用 will-change。


初始化順序(入口)

createStars();          // 背景層:靜態星空(微微閃爍)
createTwinklingStars(); // 前景層:多色小星(亮晶晶)
updateTwinklingRhythm();// 周期性細微調整,增強靈動感

源碼

<!DOCTYPE html>
<html lang="zh-CN">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>炫酷星空首頁</title><style>* {margin: 0;padding: 0;box-sizing: border-box;}body {height: 100vh;background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);overflow: hidden;font-family: 'Arial', sans-serif;}.starfield {position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 1;}.star {position: absolute;background: white;border-radius: 50%;animation: twinkle 2s infinite alternate;}@keyframes twinkle {0% { opacity: 0.3; transform: scale(1); }100% { opacity: 1; transform: scale(1.2); }}.twinkling-star {position: absolute;background: radial-gradient(circle, #ffffff 0%, #87ceeb 60%, transparent 100%);border-radius: 50%;animation: sparkle ease-in-out infinite;}.twinkling-star.color-blue {background: radial-gradient(circle, #ffffff 0%, #87ceeb 60%, transparent 100%);box-shadow: 0 0 10px #87ceeb, 0 0 20px rgba(135, 206, 235, 0.5);}.twinkling-star.color-white {background: radial-gradient(circle, #ffffff 0%, #f0f8ff 60%, transparent 100%);box-shadow: 0 0 8px #ffffff, 0 0 16px rgba(255, 255, 255, 0.4);}.twinkling-star.color-yellow {background: radial-gradient(circle, #ffffff 0%, #ffd700 60%, transparent 100%);box-shadow: 0 0 8px #ffd700, 0 0 16px rgba(255, 215, 0, 0.4);}.twinkling-star.color-pink {background: radial-gradient(circle, #ffffff 0%, #ff69b4 60%, transparent 100%);box-shadow: 0 0 8px #ff69b4, 0 0 16px rgba(255, 105, 180, 0.4);}@keyframes sparkle {0%, 100% { opacity: 0.3; transform: scale(0.8); filter: brightness(1);}25% {opacity: 0.8;transform: scale(1.2);filter: brightness(1.5);}50% {opacity: 1;transform: scale(1.4);filter: brightness(2);}75% {opacity: 0.6;transform: scale(1.1);filter: brightness(1.2);}}.content {position: relative;z-index: 10;display: flex;flex-direction: column;justify-content: center;align-items: center;height: 100vh;text-align: center;color: white;}.title {font-size: 4rem;font-weight: bold;margin-bottom: 1rem;text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);animation: glow 2s ease-in-out infinite alternate;}@keyframes glow {from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }to { text-shadow: 0 0 30px rgba(135, 206, 235, 0.8), 0 0 40px rgba(135, 206, 235, 0.6); }}.subtitle {font-size: 1.5rem;margin-bottom: 2rem;opacity: 0.8;animation: fadeInUp 1s ease-out 0.5s both;}@keyframes fadeInUp {from {opacity: 0;transform: translateY(30px);}to {opacity: 0.8;transform: translateY(0);}}.nav-buttons {display: flex;gap: 2rem;animation: fadeInUp 1s ease-out 1s both;}.nav-btn {padding: 12px 30px;background: rgba(255, 255, 255, 0.1);border: 2px solid rgba(255, 255, 255, 0.3);color: white;text-decoration: none;border-radius: 30px;transition: all 0.3s ease;backdrop-filter: blur(10px);}.nav-btn:hover {background: rgba(135, 206, 235, 0.2);border-color: rgba(135, 206, 235, 0.6);box-shadow: 0 0 20px rgba(135, 206, 235, 0.4);transform: translateY(-2px);}.shooting-stars {position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 5;}.planet {position: absolute;border-radius: 50%;background: radial-gradient(circle at 30% 30%, #4a90e2, #2c5aa0);box-shadow: 0 0 50px rgba(74, 144, 226, 0.3);animation: float 6s ease-in-out infinite;}@keyframes float {0%, 100% { transform: translateY(0px); }50% { transform: translateY(-20px); }}</style>
</head>
<body><div class="starfield" id="starfield"></div><div class="shooting-stars" id="shooting-stars" aria-hidden="true"></div><div class="planet" style="width: 80px; height: 80px; top: 20%; right: 15%; animation-delay: -2s;"></div><div class="planet" style="width: 60px; height: 60px; bottom: 30%; left: 10%; animation-delay: -4s; background: radial-gradient(circle at 30% 30%, #e74c3c, #c0392b);"></div><div class="content"><h1 class="title">星空之旅</h1><p class="subtitle">探索無限宇宙的奧秘</p><div class="nav-buttons"><a href="#" class="nav-btn">開始探索</a><a href="#" class="nav-btn">關于我們</a><a href="#" class="nav-btn">聯系方式</a></div></div><script>// 創建星星function createStars() {const starfield = document.getElementById('starfield');const numStars = 200;for (let i = 0; i < numStars; i++) {const star = document.createElement('div');star.className = 'star';const size = Math.random() * 3 + 1;star.style.width = size + 'px';star.style.height = size + 'px';star.style.left = Math.random() * 100 + '%';star.style.top = Math.random() * 100 + '%';star.style.animationDelay = Math.random() * 2 + 's';star.style.animationDuration = (Math.random() * 3 + 2) + 's';starfield.appendChild(star);}}// 創建隨機閃爍小星星function createTwinklingStars() {const container = document.getElementById('shooting-stars');const count = 80; // 可按需調整數量const colors = ['color-blue', 'color-white', 'color-yellow', 'color-pink'];for (let i = 0; i < count; i++) {const star = document.createElement('div');star.className = 'twinkling-star ' + colors[Math.floor(Math.random() * colors.length)];const size = Math.random() * 2 + 1; // 1 - 3pxstar.style.width = size + 'px';star.style.height = size + 'px';star.style.left = Math.random() * 100 + '%';star.style.top = Math.random() * 100 + '%';// 每顆星星不同節奏star.style.animationDuration = (Math.random() * 2 + 1.5) + 's'; // 1.5 - 3.5sstar.style.animationDelay = (Math.random() * 3) + 's';container.appendChild(star);}}// 周期性輕微隨機改變閃爍星星的節奏和大小,增強“亮晶晶”效果function updateTwinklingRhythm() {const stars = document.querySelectorAll('.twinkling-star');stars.forEach((star) => {// 輕微調整大小和時長const size = Math.max(1, Math.min(3, (parseFloat(star.style.width) || (Math.random()*2+1)) + (Math.random()*0.6 - 0.3)));star.style.width = size + 'px';star.style.height = size + 'px';star.style.animationDuration = (Math.random() * 2 + 1.2) + 's';star.style.animationDelay = (Math.random() * 2) + 's';});setTimeout(updateTwinklingRhythm, 3000 + Math.random() * 2000);}// 鼠標移動效果document.addEventListener('mousemove', (e) => {const stars = document.querySelectorAll('.star');const mouseX = e.clientX / window.innerWidth;const mouseY = e.clientY / window.innerHeight;stars.forEach((star, index) => {const speed = (index % 5 + 1) * 0.5;const x = (mouseX - 0.5) * speed;const y = (mouseY - 0.5) * speed;star.style.transform = `translate(${x}px, ${y}px)`;});});// 初始化// 初始化createStars();
+        createTwinklingStars();
+        updateTwinklingRhythm();// 添加少量持續拖尾粒子效果const trailStyle = document.createElement('style');trailStyle.textContent = `.meteor {will-change: transform, opacity, filter;}.meteor::before, .meteor::after {will-change: transform, opacity;}`;document.head.appendChild(trailStyle);// 添加點擊特效document.addEventListener('click', (e) => {const ripple = document.createElement('div');ripple.style.position = 'absolute';ripple.style.left = e.clientX + 'px';ripple.style.top = e.clientY + 'px';ripple.style.width = '0px';ripple.style.height = '0px';ripple.style.border = '2px solid rgba(135, 206, 235, 0.6)';ripple.style.borderRadius = '50%';ripple.style.transform = 'translate(-50%, -50%)';ripple.style.animation = 'ripple 1s ease-out';ripple.style.pointerEvents = 'none';ripple.style.zIndex = '100';document.body.appendChild(ripple);setTimeout(() => {document.body.removeChild(ripple);}, 1000);});// 添加漣漪動畫const style = document.createElement('style');style.textContent = `@keyframes ripple {0% {width: 0px;height: 0px;opacity: 1;}100% {width: 100px;height: 100px;opacity: 0;}}`;document.head.appendChild(style);</script>
</body>
</html>

結語

  • 至此,一個炫酷、靈動且可擴展的“星空首頁”就完成了。你可以繼續添加導航、介紹區塊、滾動內容,或更換主題色與動效參數,打造你的專屬宇宙。歡迎在 的基礎上自由改造與二次創作!

  • 希望對初學者有幫助

  • 致力于辦公自動化的小小程序員一枚

  • 希望能得到大家的【一個免費關注】!感謝

  • 求個 🤞 關注 🤞

  • 此外還有辦公自動化專欄,歡迎大家訂閱:Python辦公自動化專欄

  • 求個 ?? 喜歡 ??

  • 此外還有爬蟲專欄,歡迎大家訂閱:Python爬蟲基礎專欄

  • 求個 👍 收藏 👍

  • 此外還有Python基礎專欄,歡迎大家訂閱:Python基礎學習專欄

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/web/92634.shtml
繁體地址,請注明出處:http://hk.pswp.cn/web/92634.shtml
英文地址,請注明出處:http://en.pswp.cn/web/92634.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

第一天-CAN Signal信號的Multiplexor多路復用在DBC中實現

&#x1f680; CAN總線的“變形金剛術”&#xff1a;Multiplexor多路復用信號深度揭秘在汽車電子江湖中&#xff0c;當數百個ECU爭相發送數據時&#xff0c;如何讓一條CAN報文像"變形金剛"一樣自由切換形態&#xff1f;Multiplexor&#xff08;多路復用&#xff09;技…

Code Exercising Day 10 of “Code Ideas Record“:StackQueue part02

文章目錄【150. Evaluate Reverse Polish Notation】【239. Sliding Window Maximum】【347. Top K Frequent Elements】【150. Evaluate Reverse Polish Notation】 Problem Link Approach: Use a stack. Push numbers onto the stack; when encountering an operator, pop t…

系統架構設計師備考之架構設計高級知識

1.系統架構設計基礎知識1.1.軟件架構概念軟件架構定義軟件架構&#xff08;Software Architecture&#xff09;或稱軟件體系結構&#xff0c;是指系統的一個或者多個結構&#xff0c;這些結構包括軟件的構件&#xff08;可能是程序模塊、類或者是中間件&#xff09;、構件的外部…

PWM波的頻譜分析及matlab 驗證[電路原理]

你知道嗎&#xff1f;pwm可以制作adc模塊哦&#xff01;這樣普通的gpio也能實現adc功能了。 我們嵌入式日常接觸的pwm波&#xff0c;你真的了解他嗎&#xff1f; 只有知道PWM的頻譜是怎么樣的&#xff0c;才能設計合適的濾波器&#xff0c;下面我們一起從底層數學原理來推導PWM…

相機、鏡頭參數詳解以及相關計算公式

一、工業相機參數 1、分辨率 相機每次采集圖像的像素點數&#xff0c;也是指這個相機總共有多少個感光晶片。在采集圖像時&#xff0c;相機的分辨率對檢測精度有很大的影響&#xff0c;在對同樣大的視場成像時&#xff0c;分辨率越高&#xff0c;對細節的展示越明顯。 相機像素…

通信中間件 Fast DDS(一) :編譯、安裝和測試

目錄 1.簡介 2.Windows編譯、安裝和測試 2.1.編譯環境準備 2.2.編譯安裝 2.2.1.安裝FastCDR 2.2.2.安裝Foonathan Memory 2.2.3.安裝FastDDS 2.3.驗證安裝 3.Linux編譯、安裝和測試 3.1.編譯環境準備 3.2.編譯安裝 3.2.1.安裝FastCDR 3.2.2.安裝Foonathan M…

NI USRP X410 無線電上的雷達目標仿真

此示例展示如何在 NI? USRP? 無線電的 FPGA 上部署雷達目標仿真算法。 介紹 在本例中&#xff0c;您將從 Simulink 模型入手&#xff0c;該模型可模擬最多四個雷達目標響應。您將按照分步指南&#xff0c;在 Simulink 中從該模型生成比特流&#xff0c;并使用生成的 MATLAB 主…

PyTorch 深度學習實戰教程-番外篇04:卷積層詳解與實戰指南

標簽&#xff1a;# 深度學習 #人工智能 #神經網絡 #PyTorch #卷積神經網絡 相關文章&#xff1a; 《Pytorch深度學習框架實戰教程01》 《Pytorch深度學習框架實戰教程02&#xff1a;開發環境部署》 《Pytorch深度學習框架實戰教程03&#xff1a;Tensor 的創建、屬性、操作與…

LeetCode 面試經典 150_數組/字符串_分發糖果(15_135_C++_困難)(貪心算法)

LeetCode 面試經典 150_數組/字符串_分發糖果&#xff08;15_135_C_困難&#xff09;題目描述&#xff1a;輸入輸出樣例&#xff1a;題解&#xff1a;解題思路&#xff1a;思路一&#xff08;貪心算法&#xff09;&#xff1a;代碼實現代碼實現&#xff08;思路一&#xff08;貪…

配置timer控制 IO的輸出(STC8)

使用STC8的Timer控制IO輸出 STC8系列單片機具有多個定時器&#xff0c;可以用于精確控制IO口的輸出狀態。以下是使用Timer0和Timer1控制IO輸出的方法。 初始化Timer0 配置Timer0為16位自動重裝模式&#xff0c;用于周期性控制IO輸出&#xff1a; /************************ 定時…

【Python練習】086. 編寫一個函數,實現簡單的DHCP服務器功能

086. 編寫一個函數,實現簡單的DHCP服務器功能 086. 編寫一個函數,實現簡單的DHCP服務器功能 安裝依賴庫 示例代碼 代碼說明 示例輸出 注意事項 擴展功能 DHCP服務器功能實現方法 依賴庫安裝 基本功能實現 功能說明 運行方法 注意事項 擴展功能 086. 編寫一個函數,實現簡單的…

生產環境Tomcat運行一段時間后,如何測試其性能是否滿足后續使用

要測試生產環境中已運行一段時間的Tomcat性能是否滿足后續使用需求&#xff0c;需從基礎監控、負載壓力測試、配置合理性校驗、穩定性驗證等多維度入手&#xff0c;結合工具和實際業務場景定位瓶頸&#xff0c;確保其能應對未來可能的流量增長。以下是具體方法和步驟&#xff1…

Qt中的設計模式:經典的MVC,MVP和MVVM

Qt中的設計模式&#xff1a;經典的MVC&#xff0c;MVP和MVVM 前言 ? 筆者這里最近正在研究經典的三大 Model/View 框架&#xff0c;不得不說&#xff0c;我先前的確寫過Qt在這里的體現&#xff0c;但是&#xff0c;筆者認為之前的文章中&#xff0c;我只是機械的memcpy的Qt的…

Windows浮動ip怎么配置

Windows浮動IP怎么配置&#xff0c;達到IP漂移的效果&#xff0c;方法肯定是有的&#xff0c;這里我推薦一款好用的高可用Vip漂移軟件PanguVip&#xff0c;我們先看下最終達到的效果圖&#xff0c;如下所示PanguVip軟件免費下載百度網盤為您提供文件的網絡備份、同步和分享服務…

[langchain] Sync streaming vs Async Streaming

我不太清楚langchain中的sync stream 和 async steam有什么關系和區別sync stream from langchain.chat_models import init_chat_model from langchain_deepseek.chat_models import ChatDeepSeek import dotenv dotenv.load_dotenv()messages [ ("system", &quo…

nginx下lua的實現機制、Lua錯誤處理、面向對象

nginx下lua的實現機制 nginxlua概述 nginx&#xff1a;功能由模塊提供。 http模塊、events模塊&#xff0c;mail模塊。 處理http請求的時候&#xff0c;可以利用模塊做一些功能&#xff1a;eg&#xff1a;登錄校驗&#xff0c;js合并&#xff0c;數據庫訪問&#xff0c;鑒權。 …

Axure基于中繼器實現的組件庫(導航菜單、動態表格)

摘要 本文將為您詳細介紹基于 Axure 的中繼器組件庫中的 9 個獨特組件&#xff0c;這些組件不僅能夠極大地提升您的原型設計效率&#xff0c;還能為您的項目增添令人驚嘆的交互效果和視覺呈現。 引言 在當今快速發展的數字產品設計領域&#xff0c;原型設計工具的革新不斷推動著…

Kafka 生產者與消費者分區策略全解析:從原理到實踐

一、生產者分區策略1.1 分區好處&#xff08;1&#xff09;便于合理使用存儲資源&#xff0c;每個Partition在一個Broker上存儲&#xff0c;可以把海量的數據按照分區切割成一塊一塊數據存儲在多臺Broker上。合理控制分區的任務&#xff0c;可以實現負載均衡的效果。&#xff0…

高頻面試點:深入理解 TCP 三次握手與四次揮手

在網絡通信的世界里,TCP(Transmission Control Protocol,傳輸控制協議)是確保數據可靠傳輸的基石。其中,三次握手建立連接、四次揮手斷開連接的過程,更是 Java 秋招面試中的高頻考點。今天,我們就深入剖析這兩個關鍵過程,結合原理、代碼示例與面試真題,幫你吃透知識點…

k8s-nfs實現創建sc的兩種方式

法一&#xff1a;基于 官方 NFS CSI 插件 法二&#xff1a;基于 nfs-subdir-external-provisioner 法一 官方 NFS CSI 插件 大致步驟# 安裝 NFS sudo apt update sudo apt install -y nfs-kernel-server # 創建共享目錄 sudo mkdir -p /data/nfs sudo chmod 777 /data/nfs # 配…