0
我有一個反應應用程序,它使用react-bootstrap + bootstrap-sass。React-Bootstrap和Bootstrap-sass modal.scss not loading
I'm裝在我的主app.scss的bootstrap.scss文件是這樣的:
@import '~bootstrap-sass/assets/stylesheets/_bootstrap';
在我的網頁,我實現了從陣營的自舉一個簡單的組件。
但模態窗口沒有任何CSS,所以它看起來非常糟糕。
從來就試圖加載modal.scss直接
@import '~bootstrap-sass/assets/stylesheets/bootstrap/_modals';
,但仍然沒有樣式應用於。 (模態出現並按預期隱藏)。
Bootstrap scss會加載,但會出現按鈕,下拉菜單等樣式。