【问题标题】:Hubspot Landing Page StylesHubspot 登陆页面样式
【发布时间】:2017-08-25 19:04:42
【问题描述】:

在 HubSpot 中创建登录页面时,我无法覆盖 html 样式。我要补充

html {
  overflow-x: hidden
}

但它一直默认为

html {
  overflow: auto
}

我尝试过!important,将其添加到页眉、页脚、自定义 html 模块等,但我无法覆盖默认的 HubSpot 样式。

【问题讨论】:

    标签: html css hubspot


    【解决方案1】:

    特殊性:如果html标签有class或id属性,则选择它覆盖原生的。

    html.page {
      overflow-x: hidden;
    }
    

    或者,如果您可以访问它,或者将样式内联到 html 页面中。

    【讨论】:

      【解决方案2】:

      请禁用包含样式表。

      Primary CSS File : Disable

      Include Domain Stylesheets : Disable
      

      然后申请

      html.no-js { overflow-x:hidden !important; }

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-02-06
        • 2011-02-03
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多