<template>
<div>
<form action="" class="zm-form">
<label><input type="radio" name="radio" value="pm25" checked="checked"><span>PM2.5</span></label>
<label><input type="radio" name="radio" value="pm10"><span>PM10</span></label>
<label><input type="radio" name="radio" value="noise"><span>噪音</span></label>
</form>
</div>
</template>
<script>
export default {
name: 'a9'
}
</script>
<style scoped>
.zm-form {
font-size: 18px;
}
.zm-form input[type="radio"] {
margin-left: 20px;
margin-right: 5px;
visibility: hidden;
position: relative;
cursor: pointer;
}
.zm-form input[type="radio"]:before {
content: "";
position: absolute;
top: -1px;
left: -1px;
width: 100%;
height: 100%;
visibility: visible;
border-radius: 50%;
border: 1px solid #9e9b97;
}
.zm-form input[type="radio"]:checked:before {
border: 1px solid #41b2f1;
}
.zm-form input[type="radio"]:checked:after {
content: "";
position: absolute;
top: 20%;
left: 20%;
width: 60%;
height: 60%;
visibility: visible;
border-radius: 50%;
background-color: #41b2f1;
}
.zm-form input[type="radio"] + span {
cursor: pointer;
color: #9e9b97;
}
.zm-form input[type="radio"]:checked + span {
color: white;
}
</style>