微信小程序之text组件width和height设置失效问题

text组件设置width和height无效,

一、通过padding值设置大小。

二、添加display: inline-block属性,就可以正常设置大小了,推测是因为text默认display: inline的原因。