我在HBuiderX的vue文件新加了两个css,类似这种
.input-wrapper {
.mini-input-wrapper {
padding: 0;
}
label {
color: #2e82f1;
font-size: 28rpx;
}
}
然后运行到微信开发者工具,就提示...xxx: unexpected `{` at pos 5051,看了好几个方法,后来发现是新加的css问题,应该这样
.input-wrapper .mini-input-wrapper {
padding: 0;
}
.input-wrapper label {
color: #2e82f1;
font-size: 28rpx;
}
参考: