Stackblitz: How to import Bootstrap CSS framework

前端 未结 8 1122
死守一世寂寞
死守一世寂寞 2020-12-31 02:52

I just found the amazing Stackblitz online VS Code editor. I created an Angular project and under dependencies installed the Bootstrap CSS framework but how

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-31 03:23

    Add the following line of code in styles.css under src

    @import url('https://unpkg.com/bootstrap@4.5.0/dist/css/bootstrap.min.css')
    

    So to have the latest version of Bootstrap go to

    https://getbootstrap.com/docs/4.5/getting-started/introduction/
    

    Search for CSS CDN link, from that link copy the version (in my case 4.5.0) and replace it with the above import statement.

提交回复
热议问题