在使用view组件时,组件没有任何的样式。未使用任何的JS代码。希望能够得到指点。
按官方的示例代码, V层代码如下:
< view class = "section" > < view class = "section__title" >flex-direction: row</ view > < view class = "flex-wrp" style = "flex-direction:row;" > < view class = "flex-item bc_green" >1</ view > < view class = "flex-item bc_red" >2</ view > < view class = "flex-item bc_blue" >3</ view > </ view > </ view > < view class = "section" > < view class = "section__title" >flex-direction: column</ view > < view class = "flex-wrp" style = "height: 300px;flex-direction:column;" > < view class = "flex-item bc_green" >1</ view > < view class = "flex-item bc_red" >2</ view > < view class = "flex-item bc_blue" >3</ view > </ view > </ view > |
但显示效果却是:
在调试中,查看Wxml,发现没有任何附加样式:
section样式,属性空。
flex-wrp样式,属性空。
微信web开发者工具版本:
微信web开发者工具 v0.15.152900
操作系统:MacOS Version 10.10.4(14E46)