css美化radio单选框动画效果代码

代码语言:html

所属分类:表单美化

代码描述:css美化radio单选框动画效果代码

代码标签: css radio 美化

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">





    <style>
        *, *:before, *:after {
          box-sizing: border-box;
        }
        
        html {
          width: 100%;
          height: 100%;
          position: relative;
         
          background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(//repo.bfw.wiki/bfwrepo/image/5e59c09d79a9c.png);
          background-size: cover;
        }
        
        .options {
          position: absolute;
          left: 0;
          right: 0;
          top: 50%;
          transform: translateY(-50%);
          color: #ddd;
          padding: 48px;
          font-family: "Open Sans", sans-serif;
          text-align: center;
        }
        .options input {
          display: none;
        }
        .options > label {
          display: inline-block;
          position: relative;
          margin-right: 16px;
          padding-left: 24px;
          cursor: pointer;
        }
        .options > label:before {
          content: "";
          display: block;
          position: absolute;
          width: 16px;
          height: 16px;
          left: 0;
          top: 50%;
          margin-top: -8px;
          border: 1px solid #fff.........完整代码请登录后点击上方下载按钮下载查看

网友评论0