Basic layout of Web page:
(1) Flow-type layout Fluid
The basic difference between a flow layout and a fixed-width layout is that the size of the site is different for the side units. Fixed-width layouts use pixels, but the flow layout uses a percentage, and the Web page provides a strong plasticity and fluidity. In other words, by setting a percentage, we do not need to consider the size of the device or the width of the screen, you can find a workable solution for each case, and the size of your design will be adapted to all device sizes. Flow layouts are closely related to media queries and optimized style techniques.
(2) Fixed layout
In a fixed layout, the width of a Web page must be specified as a pixel value, typically 960px. In the past, developers found that 960px was best suited as the width of the grid layout, since 960 could be divisible by 3,4,5,6,8,10,12 and 15. Fixed-width layouts are more commonly used in web development today because of the robustness and controllability of this layout. But at the same time there are some disadvantages, fixed width must consider whether the site can be applied to different screen widths.
(3) Flexible layout Elastic
The elastic layout is similar to the flow layout, the main difference is the size unit. The size of the elastic layout is not a pixel or a percentage, but an em or REM, avoids the disadvantage of the PX local at high resolution, and is more flexible relative to% percent, and supports the normal display of browser font resizing and zooming, etc. It takes some time to adapt and it's not easy to convert from other layouts.
(4) Telescopic Flex box
Use the CSS3 Flex series properties for relative layout. Support for rich media and complex typography is very large, but there are compatibility issues.
(5) Response type
Use @media media queries to switch different styles for devices of different sizes and media. Excellent response range design provides a good experience for devices that fit within the range.