Yas*_*ani 4 reactjs twitter-bootstrap-2
我目前正在开发一个 React 单页应用程序,我无法弄清楚将它Bootstrap CDN放在我的项目中的何处以及如何放置以让我的引导程序正常工作。
另外,如果有人可以建议如何npm为您的项目安装引导程序。
如果您使用 create-react-app,则 public/index.html 中有一个文件,或者让我们说在您的 index html 页面中,您首先在那里使用 cdn 呈现
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
<title>React App</title>
</head>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5332 次 |
| 最近记录: |