Html布局
<div class="check">
<input type="checkbox" v-model="agreeCheck" />
我已阅读并同意
</div>
css样式
.check {
450px;
height: 33px;
line-height: 33px;
font-family: PingFang-SC-Regular;
font-size: 24px;
padding-top: 40px;
padding-left: 40px;
color: #694421;
input {
outline: 0;
-webkit-appearance: none;
position: relative;
24px;
height: 24px;
margin-right: 10px;
transform: translateY(1.5px);
&::after {
content: "";
display: block;
100%;
height: 100%;
background-image: url(../../../../assert/wei.png);
background-size: 100% 100%;
background-repeat: no-repeat;
background-color: transparent;
}
&:checked {
background-image: url(../../../../assert/gou.png);
background-size: 100% 100%;
background-repeat: no-repeat;
background-color: transparent;
}
}
a {
color: #694421;
}
}