css美化radio成磁极圆柱效果代码
代码语言:html
所属分类:表单美化
代码描述:css美化radio成磁极圆柱效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap"); *, *::before, *::after { padding: 0; margin: 0 auto; box-sizing: border-box; } *, *::before, *::after { box-sizing: border-box; } body { font-family: "Ubuntu", sans-serif; background-color: white; color: #000; min-height: 100vh; margin: 0; padding: 3em 1em; display: grid; place-items: center; perspective: 6em; } *:not(:empty) { transform-style: preserve-3d; } .radioPole { position: relative; display: block; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .radioPole:active > .radioPole_layers { height: 0.25em; } .radioPole_label { padding: 0.25em 0.25em 0.25em 1.5em; } .radioPole > input { -webkit-appearance: none; -moz-appearance: none; appearance: none; position: fixed; left: -100vmax; top: -100vmax; } .radioPole > input:checked ~ .radioPole_layers { --saturation: 100%; --checkLight: -40%; } .radioPole > input:disabled ~ * { cursor: not-allowed;.........完整代码请登录后点击上方下载按钮下载查看
网友评论0