自定义radio点击切换效果
代码语言:html
所属分类:表单美化
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>toggle-radio-button</title>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700,800&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Montserrat', sans-serif;
font-weight: 400;
line-height: 1.5;
background-color: black;
color: #d6d4d4;
}
h2 {
font-size: 28px;
font-weight: 600;
margin: 0 0 10px 0;
}
.container {
display: grid;
grid-template-rows: 70px 50px 70px 70px;
align-items: center;
justify-content: center;
width: calc(100vw - 40px);
height: calc(100vh - 40px);
padding: 20px;
}
svg {
width: 40px;
padding-right: 8px;
}
input[type="radio"].........完整代码请登录后点击上方下载按钮下载查看
















网友评论0