【问题标题】:My CSS is not working correctly when "sails lift --prod" as it does when "sails lift"我的 CSS 在“sails lift --prod”时无法正常工作,就像在“sails lift”时一样
【发布时间】:2014-12-06 00:33:33
【问题描述】:

当我在生产模式下启动 Sails 时,我的 CSS 会出现什么问题?

PS:我使用 Sails v0.10.5、bootstrap v3.2.0 和自定义 css 文件用于自定义 css 内容。

【问题讨论】:

    标签: css twitter-bootstrap deployment sails.js production-environment


    【解决方案1】:

    仅供参考:这可能是我写的一个糟糕的 css 标签。不知道为什么这只是生产模式下的问题。

    这里是有问题的标签:

    .form-signin {
        width: 300px;
        padding: : 19px 29px 29px;
        margin: 0 auto 20px;
        margin-top: 40px;
        background-color: @lightGray;
        border: 1px solid @green;
        -webkit-border-radius: 15px;
        -moz-border-radius: 15px;
        border-radius: 15px;
    
        h2 {
            text-align: center;
            margin-top: 0px;
        }
    }
    

    没有 h2 定义,它就像在开发模式下一样工作。

    【讨论】:

      猜你喜欢
      • 2016-03-07
      • 2023-03-10
      • 1970-01-01
      • 2014-12-08
      • 1970-01-01
      • 2016-12-04
      • 1970-01-01
      • 2016-12-24
      • 1970-01-01
      相关资源
      最近更新 更多