前台网站开发技术,工商网核名查询,最近的男科医院是哪家医院,阿里云如何建立网站默认使用display: flex;是不换行的#xff0c;只需要加上flex-wrap: wrap;就行了#xff0c;效果图 .app-center {display: flex;flex-wrap: wrap;justify-content:flex-start;
}
通过上面我们发现虽然时间换行了#xff0c;但是每行的边距不一样
加上这个就行了#xff…默认使用display: flex;是不换行的只需要加上flex-wrap: wrap;就行了效果图 .app-center {display: flex;flex-wrap: wrap;justify-content:flex-start;
}
通过上面我们发现虽然时间换行了但是每行的边距不一样
加上这个就行了flex: 1 0 calc(20% - 40px); /* 控制一行显示5个设置间距为20px */最后效果 整体代码
van-nav-bar title应用中心 fixedfalse placeholderfalse custom-classnav title-classnav-title!-- view slotleft classleftIconvan-icon namearrow-left colorwhite size15px //view --
/van-nav-bar
scroll-view classscrollarea show-scrollbar{{false}} enhanced{{true}} enable-passive{{true}} scroll-y{{true}}view classcontainerview classapp-moduletext classmodule-title应付/textview classapp-centerview classapp-item!-- image classapp-icon src{{subItem.iconUrl}}/image --van-icon namesetting-o size30px /text classapp-title发起/text/viewview classapp-item!-- image classapp-icon src{{subItem.iconUrl}}/image --van-icon namesetting-o size30px /text classapp-title发起/text/viewview classapp-item!-- image classapp-icon src{{subItem.iconUrl}}/image --van-icon namesetting-o size30px /text classapp-title发起/text/viewview classapp-item!-- image classapp-icon src{{subItem.iconUrl}}/image --van-icon namesetting-o size30px /text classapp-title发起/text/viewview classapp-item!-- image classapp-icon src{{subItem.iconUrl}}/image --van-icon namesetting-o size30px /text classapp-title发起/text/viewview classapp-item!-- image classapp-icon src{{subItem.iconUrl}}/image --van-icon namesetting-o size30px /text classapp-title发起/text/viewview classapp-item!-- image classapp-icon src{{subItem.iconUrl}}/image --van-icon namesetting-o size30px /text classapp-title发起/text/viewview classapp-item!-- image classapp-icon src{{subItem.iconUrl}}/image --van-icon namesetting-o size30px /text classapp-title发起/text/viewview classapp-item!-- image classapp-icon src{{subItem.iconUrl}}/image --van-icon namesetting-o size30px /text classapp-title发起/text/viewview classapp-item!-- image classapp-icon src{{subItem.iconUrl}}/image --van-icon namesetting-o size30px /text classapp-title发起/text/view/view/view/view
/scroll-view
.app-module{background-color: #FFFFFF;height: auto;border-radius: 5px;padding: 10px 10px 0px 10px;
}.app-center {display: flex;flex-wrap: wrap;justify-content:flex-start;
}.app-module .module-title {font-weight: bold;
}.app-item {flex: 1 0 calc(20% - 40px); /* 控制一行显示5个设置间距为20px */display: flex;flex-direction: column;align-items: center;margin: 20rpx;padding: 5px;
}.app-icon {width: 80rpx;height: 80rpx;
}.app-title {margin-top: 10rpx;font-size: 14px;
}