[CSS] Bootstrap automatically adapts to the raster System of PCs, tablets, and mobile phones.
The grid system is translated into a grid system in English. It uses a fixed grid to design the layout. The style is neat and concise, and is very popular after the Second World War, it has become one of the mainstream designs of today's publications.
In October 1692, the French King Louis 14th of sunden received an unsatisfactory level of printing in France, and therefore ordered the establishment of a royal Special Committee to manage printing. Their primary task is to design a scientific, rational, and functional new font. Led by Nicolas Jaugeon, a mathematician, the Committee is based on the Rome and designed based on squares. Each font square is divided into 64 basic square units, each square unit is further divided into 36 small cells. In this way, a printed layout consists of 2304 small cells. In this rigorous geometric mesh network, the font shape and layout are designed, the effectiveness of the communication function is the first scientific experiment on fonts and la s in the world. It is also the earliest prototype of the grid system.
My definition for the webpage raster system is to guide and standardize the layout and information distribution of the webpage with a grid array of rules. The webpage raster system is developed from the flat raster system. For webpage design, the use of the raster system not only makes the webpage information more beautiful, easy to read, and more available. In addition, for front-end development, web pages will be more flexible and standardized.
Bootstrap provides a responsive, mobile device-first streaming raster system. With the increase in the screen or viewport size, the system will automatically be divided into up to 12 columns. It contains easy-to-use predefined classes and powerful mixin for generating more semantic la S.
That is to say, Bootstrap divides the width of an element into 12 parts. In this case, we are divided into 12 row Arrangement elements.
I. Basic Objectives
Make the following two rows. The two rows change the width of each cell in different devices:
On the small screen of the mobile phone, uplink A occupies 2 copies of B and AB shares the 12 copies, while downlink A occupies 1 copy of B and 1 copy of C, ABC shared the 12 copies.
On the medium screen of the tablet, uplink A accounts for 8 portions of B, AB shares the 12 portions, and downlink A accounts for 10 portions of B and 1 portion of C, ABC shared the 12 copies.
On the big screen of the PC, uplink A accounts for 4 parts B accounts for 8 parts, AB shares these 12 parts, downlink A accounts for 1 Part B accounts for 10 parts C accounts for 1 part, ABC shared the 12 copies.
Ii. Production Process
Configure Bootstrap in the webpage folder and download the component from the official website (click to open the link). The Bootstrap version used in the production environment (click to open the link) is incompatible with Bootstrap3 and 2, we recommend that you use Bootstrap3 directly based on the development documentation. Decompress Bootstrap and copy the three folders css, fonts, and js to the site directory. For JSP Web projects of Eclipse, place them under the WebRoot folder.
The Code is as follows. For details, see the notes:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Introduction to Bootstrap, adaptive problems
What do you understand as "Adaptive" means that the page scales/scales with the screen "? Is the screen scaled out, and all input/buttons are scaled down proportionally?
That is not adaptive. Imagine how to scale down the button to 5 PX. It's almost "unavailable.
Adaptive and line feed when needed, is to solve the problem of "unavailable": 1080 p display can be used, 800*600 of the claw machine can still be clicked (rather than dragging/scroll in a wide range ).
Conclusion: The line feed is correct. If the layout needs to ensure a row, set the minimum width of the container containing the control.
In addition, we recommend that you add icons (such as fontawesome) to buttons to improve the user experience and reduce the number of brain cells consumed by reading images than reading words.
It is no longer the best practice/trend to squeeze as many content and functions as possible.
Div + css layout [bootstrap] [framework]
Friend, it is rare that you are still learning in the middle of the night. Passing by will give you a thought.
(Fixed on both sides, and adaptive in the middle is a common layout)
The left and right fixed widths are absolutely located, and the margin value corresponding to the plate in the middle is enough.