<template>
<div />
<span>★</span>
</p>
</div>
</template>
<script>
export default {
name:'shoplist',
data(){
return {
inputdata:'5'
}
},
methods:{
},
watch: {
inputdata(value) {
console.log(value)
}
}
}
</script>
<style>
.all>input{opacity:0;position:absolute;width:2em;height:2em;margin:0;}
.all>input:nth-of-type(1),
.all>span:nth-of-type(1){display:none;}
.all>span{font-size:2em;color:gold;
-webkit-transition:color .2s;
transition:color .2s;
}
.all>input:checked~span{color:#666;}
.all>input:checked+span{color:gold;}
</style>

相关文章:

  • 2021-08-13
  • 2021-06-19
  • 2021-09-02
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案