作者:lucifer | 来源:互联网 | 2017-05-11 02:04
这篇文章主要介绍了微信小程序 View组件详细介绍的相关资料,需要的朋友可以参考下
view
弹性框模型分为弹性容器以及弹性项目。当组件的display为flex或inline-flex时,该组件则为弹性容器,弹性容器的子组件为弹性项目。
flex-direction: row
flex-direction: column
justify-content: flex-start
justify-content: flex-end
justify-content: center
justify-content: space-between
justify-content: space-around
align-items: flex-end
align-items: center
align-items: center
wxss
.flex-wrp{
height: 100px;
display:flex;
background-color: #FFFFFF;
}
.flex-item{
width: 100px;
height: 100px;
}
更多微信小程序 View组件详细介绍相关文章请关注PHP中文网!