小程序

1、小程序的  外部样式属性:externalClasses 可以是 1个或多个  (string or array)

小程序

2 在组件标签里写上class

小程序

3、在使用组件的页面里的标签里 写上属性要对应的class类名

小程序

4、在使用的页面的wxss文件里中写上样式 刷新大功告成

小程序

微信小程序官方文档链接:

https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html

需要注意:看下图

小程序

TAG标签: 微信小程序小程序样式

http://www.xiaochengxub.com/read-102478.html