Why not use bootstrap on the front end?
My following friends paid attention to this issue. I only represent my personal point of view on the reasons why bootstrap is not used, which is referred to as bs here.
#When I was using bs, I was still in the front-end entry stage. The bs official document is friendly enough for any type of developer to reference this file and copy and paste it to form the UI. , and there is no need to remediate too much front-end knowledge. (Recommended learning: Bootstrap Video Tutorial)
It is undoubtedly the most guaranteed first choice of CSS framework when there is no designer or there is an urgent need to rush work. When using it, you don’t have to worry about compatibility, page collapse and other visible bugs. bs handles them all for you, which is very worry-free.
In the 0 stage of a project, if you want to quickly form a demo, bs is suitable for making base shirts on the web side.
At the project growth stage, the role of bs will be greatly reduced. bs cannot fully meet the UI changes caused by new requirements. Especially when debugging by non-front-end developers, the lack of knowledge and experience will lead to bloated and confusing page layouts. As front-end developers grow, most people think that when faced with UI changes, Writing by hand is easier than using bs.
If you want to make a more dazzling page based on bs, this framework cannot achieve it. This is one of the reasons why some developers abandoned bs midway. However, this framework still exists as a project. After rapid changes, bs will Become the mud that you want to pull away but cannot erase.
Developers have repeatedly modified and kneaded this piece of mud, so they often think about what this framework has done for the project.
If you treat bs as a base layer at first, then it can only be used as base layer.
If you want to make full use of bs as a framework from the beginning, it will take time to learn and cost to supplement the prerequisite knowledge of this framework. However, when you fully understand bs and understand the source code of bs In the end, you will find that many of its implementation methods are not as great as you imagined. You will also be eager to try, and even think of more brilliant ideas to complete the same thing.
Next, multi-column layout is one of the most common CSS layouts. There are no less than 10 ways to implement it. They deal with various business scenarios respectively, and the flow layout of bs can be said to hold up the sky. , its responsiveness seems to dominate the world and can meet 80% of the requirements, but developers will still reserve 20% for chasing more efficient techniques, and with the development of the front end, the native BS flow layout has become better Way to achieve it.
In fact, if a front-end engineer can have an in-depth understanding of frameworks such as bootstrap or foundation, the improvement in technology and efficiency will be quite obvious.
So, I think the reason why many front-end developers don’t use the bootstrap framework is because they have stood on the shoulders of bs and seen a more exciting world.
For more technical articles related to Bootstrap, please visit the Bootstrap Tutorial column to learn!
The above is the detailed content of Why not use bootstrap on the front end?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to use Bootstrap to get the value of the search bar: Determines the ID or name of the search bar. Use JavaScript to get DOM elements. Gets the value of the element. Perform the required actions.

Using Bootstrap in Vue.js is divided into five steps: Install Bootstrap. Import Bootstrap in main.js. Use the Bootstrap component directly in the template. Optional: Custom style. Optional: Use plug-ins.

There are two ways to create a Bootstrap split line: using the tag, which creates a horizontal split line. Use the CSS border property to create custom style split lines.

Use Bootstrap to implement vertical centering: flexbox method: Use the d-flex, justify-content-center, and align-items-center classes to place elements in the flexbox container. align-items-center class method: For browsers that do not support flexbox, use the align-items-center class, provided that the parent element has a defined height.

To adjust the size of elements in Bootstrap, you can use the dimension class, which includes: adjusting width: .col-, .w-, .mw-adjust height: .h-, .min-h-, .max-h-

To set up the Bootstrap framework, you need to follow these steps: 1. Reference the Bootstrap file via CDN; 2. Download and host the file on your own server; 3. Include the Bootstrap file in HTML; 4. Compile Sass/Less as needed; 5. Import a custom file (optional). Once setup is complete, you can use Bootstrap's grid systems, components, and styles to create responsive websites and applications.

There are several ways to insert images in Bootstrap: insert images directly, using the HTML img tag. With the Bootstrap image component, you can provide responsive images and more styles. Set the image size, use the img-fluid class to make the image adaptable. Set the border, using the img-bordered class. Set the rounded corners and use the img-rounded class. Set the shadow, use the shadow class. Resize and position the image, using CSS style. Using the background image, use the background-image CSS property.

Solutions to the garbled code of Bootstrap Table when using AJAX to obtain data from the server: 1. Set the correct character encoding of the server-side code (such as UTF-8). 2. Set the request header in the AJAX request and specify the accepted character encoding (Accept-Charset). 3. Use the "unescape" converter of the Bootstrap Table to decode the escaped HTML entity into original characters.
