radio插件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | *, *:after, *:before { box-sizing: border-box; } .container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; display: -webkit-box; display: flex; -webkit-box-pack: center; justify-content: center; -webkit-box-align: center; align-items: center; padding: 20px; } body { font-family: "Inter" , sans-serif; color: #340417; font-size: calc(1em + 1.25vw); background-color: #f4e7ec; } form { display: -webkit-box; display: flex; flex-wrap: wrap; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; } label { display: -webkit-box; display: flex; cursor: pointer; font-weight: 500; } label input { display: none; } label input: checked + span { background-color: #edd8e0; } label input: checked + span:before { box-shadow: inset 0 0 0 0.4375em #900c3f; } label span { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; margin-bottom: 0.375em; padding: 0.375em 0.75em 0.375em 0.375em; border-radius: 99em; -webkit-transition: 0.25s ease; transition: 0.25s ease; } label span:hover { background-color: #edd8e0; } label span:before { display: -webkit-box; display: flex; flex-shrink: 0; content: "" ; background-color: #fff; width: 1.5em; height: 1.5em; border-radius: 50%; margin-right: 0.375em; -webkit-transition: 0.25s ease; transition: 0.25s ease; box-shadow: inset 0 0 0 0.125em #900c3f; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <!DOCTYPE html> <html lang= "en" > <head> <meta charset= "UTF-8" > <title> Pill styled radio buttons | Fully scaleable </title> <link rel= "stylesheet" href= "./style.css" > </head> <body> <!-- partial:index.partial.html --> <div class = "container" > <form> <label> <input type= "radio" name= "radio" checked /> <span>HTML</span> </label> <label> <input type= "radio" name= "radio" /> <span>CSS</span> </label> <label> <input type= "radio" name= "radio" /> <span>Javascript</span> </label> </form> </div> <!-- partial --> </body> </html> |
作者:子钦加油
出处:https://www.cnblogs.com/zmdComeOn/
个性签名:努力生活,努力走路
阿里云拼团:https://www.aliyun.com/1111/home?userCode=f4ee1llo1核2G1M,86一年,229三年;2核4G5M,799三年;2核8G5M,1399三年
腾讯云三月采购计划特价:https://cloud.tencent.com/act/cps/redirect?redirect=1073&cps_key=15d0b1673287c43fe946626d9f4e2eee&from=console1核2G1M,88一年;1核2G1M,268三年;2核4G5M,998一年;4核8G5M,2888元三年
出处:https://www.cnblogs.com/zmdComeOn/
个性签名:努力生活,努力走路
阿里云拼团:https://www.aliyun.com/1111/home?userCode=f4ee1llo1核2G1M,86一年,229三年;2核4G5M,799三年;2核8G5M,1399三年
腾讯云三月采购计划特价:https://cloud.tencent.com/act/cps/redirect?redirect=1073&cps_key=15d0b1673287c43fe946626d9f4e2eee&from=console1核2G1M,88一年;1核2G1M,268三年;2核4G5M,998一年;4核8G5M,2888元三年
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 字符编码:从基础到乱码解决