radio美化效果蓝色
代码语言:html
所属分类:表单美化
代码描述:radio美化效果蓝色,通过prefixfree实现自动浏览器兼容,无需写前缀
代码标签: 蓝色
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { font-family: sans-serif; min-height: 100vh; display: flex; justify-content: center; align-items: center; } * { box-sizing: border-box; } .l-radio { padding: 6px; border-radius: 50px; display: inline-flex; cursor: pointer; transition: background 0.2s ease; margin: 8px 0; -webkit-tap-highlight-color: transparent; } .l-radio:hover, .l-radio:focus-within { background: rgba(103, 67, 238, 0.06); } .l-radio input { vertical-align: middle; width: 20px; height: 20px; border-radius: 10px; background: none; border: 0; box-shadow: inset 0 0 0 1px #9F9F9F; box-shadow: inset 0 0 0 1.5px #9F9F9F; appearance: none; padding: 0; margin: 0; transition: box-shadow 150ms cubic-bezier(0.95, 0.15, 0.5, 1.25); pointer-events: none; } .l-radio input:focus { outline: none; } .l-radio input:checked { box-shadow: inset 0 0 0 6px .........完整代码请登录后点击上方下载按钮下载查看
网友评论0