Common interview questions for bootstrap (summary)
青灯夜游
Release: 2018-10-13 17:12:45
forward
7334 people have browsed it
This article summarizes some common bootstrap interview questions for you. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. If you want to learn and get more bootstrap related tutorials, you can also visit: bootstrap tutorial!
1. Why use bootstrap?
Bootstrap has the advantages of mobile device priority, good browser support, easy to use, responsive design, etc. So Bootstrap is widely used.
2.Add the viewport meta tag in the head
In order to make the website developed by Bootstrap mobile-friendly and ensure proper drawing and touch screen scaling, it is necessary Add the viewport meta tag to the head of the web page, and the
width attribute controls the width of the device. Assuming that your website will be viewed on devices with different screen resolutions, setting it to device-width will ensure that it renders correctly on different devices.
iinitial-scale=1.0;Ensure that when the web page is loaded, it will be rendered at a 1:1 ratio without any scaling.
On mobile browsers, the zooming functionality can be disabled by adding user-scalable=no to the viewport meta tag.
Normally, maximum-scale=1.0 is used with user-scalable=no. After disabling the zoom function, users can only scroll the screen, which can make your website look more like a native application, so add the following code:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn