只需要在组件中加入 flex-grow: 1; 属性 就可以了
.cost{
justify-content: center;
margin-top: 10px;
flex-grow: 1;
}
只需要在组件中加入 flex-grow: 1; 属性 就可以了
.cost{
justify-content: center;
margin-top: 10px;
flex-grow: 1;
}
View组件是比较常用的组件,而且通常是按照一定比例来分配它的大小。效果
组件:相当于 span,行内元素 行内元素,我在 view(块级元素)当中编写了两个 text 组件,发现都在一行当中进行显示,
在index.wxml中添加以下代码 在index.js中添加以下代码 P...
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M