小程序开发----微信小程序直接写 设置空格无效

时间:2020-06-11 13:35:00   收藏:0   阅读:215

1.微信小程序直接写 设置空格无效

解决:卸载<text>组件中,并设置decode属性为true即可。

1             <view class=‘text operation‘>
2                <text decode="true" >&nbsp;&nbsp;&nbsp;&nbsp;</text>
3             </view>

 

 

技术图片

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!