导入引导程序

问题描述 投票:0回答:1

我正在使用 React,当我制作时

import 'bootstrap/dist/css/bootstrap.min.css';

import './index.css'; 

Index.css 不起作用,但是当我删除 bootstrap import 时,Index.css 再次工作,但我无法使用 Reactstrap

我两个都想要

谢谢!

reactjs bootstrap-5 reactstrap
1个回答
0
投票

尝试在你的index.css文件中导入bootstrap。

@import url('bootstrap/dist/css/bootstrap.min.css');
© www.soinside.com 2019 - 2024. All rights reserved.