Home > front end >  Flex use
Flex use

Time:10-22

Use the flex
Elastic box model (flex), we are used to implement the layout of the page, of course, the use of the flex is very flexible, in addition to the multiple block boxes horizontal arrangement, we can also use the flex on the same lines of multiple line boxes in the direction of the horizontal and vertical alignment effect, such as a line of multiple span tags, we want to make the horizontal alignment, you can add the display attribute values as flex, then the justify - space - between the value of the content, can be realized, including the horizontal direction, we want to make different height of vertical center box, you can use the align - items or align - the content, attribute value as the center, can be realized, of course, if you need other effects, can take different attribute values and attributes

CodePudding user response:

CodePudding user response:

  • Related