bootstrap安装【node.js】

  1. 安装
# 安装到node_modules目录
npm i -S bootstrap

# 使用 js
app.use('/node_modules/', express.static('./node_modules/'))
app.use('/public/', express.static('./public/'))

# 使用 html
<head>
  <link href="/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Custom styles for this template -->
  <link href="/public/css/main.css" rel="stylesheet">
</head>
posted @ 2021-06-20 16:22  该显示昵称已被使用了  阅读(65)  评论(0)    收藏  举报