css实现漂亮的radio美化点击切换tab效果代码

代码语言:html

所属分类:表单美化

代码描述:css实现漂亮的radio美化点击切换tab效果代码

代码标签: css radio 美化 点击 切换

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

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">

    <style>
        @import url('https://fonts.googleapis.com/css?family=Lato:400,500,600,700&display=swap');
    *{
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Lato', sans-serif;
    }
    html,body{
      display: grid;
      height: 100%;
      place-items: center;
      background: #0069d9;
      font-family: 'Lato', sans-serif;
    }
    .wrapper{
      display: inline-flex;
      background: #fff;
      height: 100px;
      width: 400px;
      align-items: center;
      justify-content: space-evenly;
      border-radius: 5px;
      padding: 20px 15px;
      box-shadow: 5px 5px 30px rgba(0,0,0,0.2);
    }
    .wrapper .option{
      background: #fff;
      height: 100%;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-evenly;
      margin: 0 10px;
      border-radius: 5px;
      cursor: pointer;
      padding: 0 10px;
      border: 2px solid lightgrey;
      transition: all 0.3s ease;
    }
    .wrapper .option .dot{
      height: 20px;
      width: 20px;
      background: #d9d9d9;
      border-radius: 50%;
      position: relative;
    }
    .wrapper .option .dot::before{
      position: absolute;
      content: "";
      top: 4px;
      left: 4px;
      width: 12px;
      height: 12px;
      background: #0069d9;.........完整代码请登录后点击上方下载按钮下载查看

网友评论0