This article mainly introduces the detailed introduction of the mini-program View component. if you need it, you can refer to this article to introduce the detailed introduction of the mini-program View component, for more information, see
View
The elastic box model includes elastic containers and elastic projects. When the display of a component is flex or inline-flex, the component is an elastic container, and the sub-component of an elastic container is an elastic project.
Flex-direction: row
Flex-direction: column
Justify-content: flex-start
Justify-content: flex-end
Justify-content: center
Justify-content: space-
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;}
For more articles about the View components of small programs, please follow the PHP Chinese network!