How to introduce bootstrap into vscode

王林
Release: 2020-04-15 14:36:03
Original
6372 people have browsed it

How to introduce bootstrap into vscode

1. Create the project and initialize the project

2. Check npm, vue, node

3. cd to the current directory and execute the following command :

npm install bootstrap --save --save-exact // --save是做为依赖库存到package.json中,后面的命令会精确版本号(就是版本前面没有尖括号),在项目开发中还是很需要的,这步比较重要
Copy after login

4. Introduce it into main.js

import ‘bootstrap/dist/css/bootstrap.min.css’
Copy after login

5. Carry out layout in app.vue, then write the general style and test its buttons. Check whether the introduction is successful.

Recommended tutorial:vscode tutorial

The above is the detailed content of How to introduce bootstrap into vscode. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!