【问题标题】:Is it good practice to use angular-Flex layout + Bootstrap forms in angular 4 instead of using bootstrap 4 flex?在 angular 4 中使用 angular-Flex 布局 + Bootstrap 表单而不是使用 bootstrap 4 flex 是一种好习惯吗?
【发布时间】:2019-03-28 13:59:58
【问题描述】:

想知道在 angular 4 中使用 angular-Flex 布局 + Boostrap 表单而不是使用 bootstrap 4 flex 是否是一种好习惯?

【问题讨论】:

    标签: angular twitter-bootstrap angular-flex-layout


    【解决方案1】:

    你可以毫无问题地结合这两个库。

    如果您想保持较小的捆绑文件大小,您可以只导入您使用的 Bootstrap 库的部分 - 假设您使用 scss

    例如,仅导入表单,在您的style.scss:

    @import "~bootstrap/scss/bootstrap-grid";
    

    如果您使用的是纯 css,那么您需要自己构建这个文件。

    【讨论】:

    • 非常感谢您的建议
    猜你喜欢
    • 2019-03-06
    • 2019-04-28
    • 2016-02-19
    • 1970-01-01
    • 2021-05-30
    • 2021-05-05
    • 1970-01-01
    • 2018-05-06
    • 1970-01-01
    相关资源
    最近更新 更多