在vue中使用复选框出现的问题

<input type=“checkbox“/>在vue项目中页面不显示

type为checkbox的input写在.vue文件里,但在页面上不显示,检查发现就在页面上但是肉眼看不见。。。将这行代码随便放到另一个项目的.html文件里又显示正常 

原因:好像是因为项目引入自适应插件的原因,注释掉就可以显示,不注释的话就加下述样式 

template:
<input  type="checkbox" class="checkbox-input" v-model="item.flag"  />
style:
.checkbox-input{
		background-color: initial;
	    cursor: default;
	    appearance: checkbox;
	    box-sizing: border-box;
	    padding: initial;
	    border: initial;
	}

猜你喜欢

转载自blog.csdn.net/qq_48018288/article/details/128202890