How to change Bootstrap's global default font size?

后端 未结 6 1913
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 01:46

Bootstrap\'s global default font-size is 14px, with a line-height of 1.428. How can I change its default global settings?

Will I have to change bootstrap.min.css in

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 02:24

    You can add a style.css, import this file after the bootstrap.css to override this code.

    For example:

    /* bootstrap.css */
    * {
       font-size: 14px;
       line-height: 1.428;
    }
    
    /* style.css */
    * {
       font-size: 16px;
       line-height: 2;
    }
    

    Don't change bootstrap.css directly for better maintenance of code.

提交回复
热议问题