In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to use Bootstrap responsive layout". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
I. the working principle of the grid system:
1. In this system, our row must be included in our fixed width (.container) or full screen width up to 100%, so that we can add appropriate aligment and padding to it.
2. Through the characteristics of rows (row), we can create a set of columns (column) horizontally.
3. When we use it, the content needs to be placed in the column, and only the column (column) can be used as a direct child element of our row (row).
4. For classes such as .row and col-xs-4, we can be used to quickly create grid layouts, not only the mixin defined in the bootstrap source code can also be used to create semantic layouts.
5. When this layout is used, we can also set the padding property. This creates a gutter between the columns, and then counteracts the padding set by the .rowd element by setting a negative value for the .rowd element, which indirectly counteracts the padding for the column (column) contained in the row.
6. If the column of the system specifies a value from 1 to 12 to represent the span range.
7. In the system, if we are setting up a row (row) that contains columns (column) greater than 12, the elements of the redundant columns will be arranged in another row as a whole.
Second, use Bootstrap responsive layout
First, let's add the following code to the new page, as follows:
We can know from the code that we add the viewpirt attribute in the mate tag, the width in content is equal to the width of the device, initial-scale: the zoom level of the visible area of the page is displayed for the first time, with a value of 1, the page is displayed according to the actual size, without any zoom; maximum-scale: the minimum ratio to which the user is allowed to zoom; user-scalable: whether the user can zoom manually.
Let's look at the following code and running results according to this system:
The user's login password remembers me. Forget your password? This is the end of logging in to "how to use Bootstrap responsive layout". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.