效能
通過幀率: 平均 60 fps,p5 59.9 · 長任務: 0 個,共 0 毫秒,最長 0 毫秒 · 原始碼 gzip 1.4 KB · 執行時 2.6 KB
massive-turtle-43MIT單選組Uiverse.io
aadium 用純 HTML 和 CSS 做的單選組。依 MIT 授權從 Uiverse.io 收錄,此處為即時預覽。
品質報告
等級和分數來自建置或測試時跑過的自動檢查。沒跑過的項目會標成「未檢測」,不會填假資料。
幀率: 平均 60 fps,p5 59.9 · 長任務: 0 個,共 0 毫秒,最長 0 毫秒 · 原始碼 gzip 1.4 KB · 執行時 2.6 KB
問題 0 · 讀屏: 通過
沒有持續動效
無溢出
幀率和長任務是在無介面的 Chromium 裡用軟體 WebGL 測的,只適合在本站元件之間比較,不代表實機表現。
不適用:靜止時沒有可見動畫;由懸停觸發的動畫沒有測試。
沒有 axe-core 違規。

檢測於 2026年11月15日 · 資料來自自動腳本,不是手工填寫。
以實際尺寸顯示。
複製內容以授權聲明開頭,使用程式碼時請保留。
<label class="container" id="left">
<input type="radio" name="my-radio-button">
<div class="selected" id="leftradio"></div>
</label>
<label class="container" id="middle">
<input type="radio" name="my-radio-button">
<div class="selected" id="middleradio"></div>
</label>
<label class="container" id="right">
<input type="radio" name="my-radio-button">
<div class="selected" id="rightradio"></div>
</label>/* From Uiverse.io by aadium - Tags: cyberpunk, radio, futuristic */
.container input[type="radio"] {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.container {
display: inline-block;
position: relative;
cursor: pointer;
font-size: 17px;
width: 5em;
height: 2.5em;
user-select: none;
border: none;
}
.selected {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#leftradio {
border-bottom-left-radius: 2.5em;
border-top-left-radius: 2.5em;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
border: 3px solid #78cce2;
background-color: transparent;
transition: 0.2s ease-in;
}
#rightradio {
border-bottom-right-radius: 2.5em;
border-top-right-radius: 2.5em;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border: 3px solid #defe47;
background-color: transparent;
transition: 0.2s linear;
}
#middleradio {
border: 3px solid #f887ff;
background-color: transparent;
transition: 0.2s linear;
}
.selected:after {
content: '';
position: absolute;
background-color: 78cce2;
width: 100%;
height: 90%;
transform: scale(0);
transition: 0.2s ease-out;
}
#leftradio:hover {
border-bottom-left-radius: 2.5em;
border-top-left-radius: 2.5em;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
border: 3px solid #78cce2;
background-color: #78cce2;
}
#leftradio::after {
top: 0%;
height: 100%;
border-bottom-left-radius: 2.5em;
border-top-left-radius: 2.5em;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
border: none;
background-color: #78cce2;
box-shadow: 0em 0em 4em 0.1em #78cce2;
}
#rightradio:hover {
border-bottom-right-radius: 2.5em;
border-top-right-radius: 2.5em;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border: 3px solid #defe47;
background-color: #defe47;
}
#rightradio::after {
left: -3%;
top: -1%;
border-bottom-right-radius: 2.5em;
border-top-right-radius: 2.5em;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border: 3px solid #defe47;
background-color: #defe47;
box-shadow: 0em 0em 4em 0.1em #defe47;
}
#middleradio:hover {
border: 3px solid #f887ff;
background-color: #f887ff;
}
#middleradio::after {
left: -3%;
top: -3%;
border: 3px solid #f887ff;
background-color: #f887ff;
box-shadow: 0em 0em 4em 0.1em #f887ff;
}
.container input[type="radio"]:checked ~ .selected:after {
transform: scale(1);
}控制項 · HTML · CSS · JS
直接改程式碼,再用控制項微調,預覽會隨輸入即時更新。

線上編輯每個元件,用控制項微調,下載完整原始碼,複製進階提示詞。
一次性 $49暫定價格
測試模式:不會真的扣款。
免費:預覽、複製按鈕和課程說明。
左、中、右三段組成一根圓角長條,分別是青、粉、黃綠描邊,選中的那段被自己的顏色填滿。
心情或評分選擇、低中高三檔和活潑的設定。
改 #78cce2、#f887ff、#defe47 三色、5em × 2.5em 的分段尺寸和 0.2s 填充過渡。
用純 HTML、CSS 和 JavaScript(不用框架)做一個「三色分段單選」元件。左、中、右三段組成一根圓角長條,分別是青、粉、黃綠描邊,選中的那段被自己的顏色填滿。 適用場景:心情或評分選擇、低中高三檔和活潑的設定。 開放這些可調項:改 #78cce2、#f887ff、#defe47 三色、5em × 2.5em 的分段尺寸和 0.2s 填充過渡。 支援淺色和深色主題,遵守 prefers-reduced-motion 並給出靜止畫面,保證文字清晰、控制元件可用鍵盤操作。請寫原創程式碼,不要從付費或受限的元件庫複製。
更完整的提示詞,包含調參、無障礙和接入步驟。