【发布时间】:2017-08-25 19:04:42
【问题描述】:
在 HubSpot 中创建登录页面时,我无法覆盖 html 样式。我要补充
html {
overflow-x: hidden
}
但它一直默认为
html {
overflow: auto
}
我尝试过!important,将其添加到页眉、页脚、自定义 html 模块等,但我无法覆盖默认的 HubSpot 样式。
【问题讨论】:
在 HubSpot 中创建登录页面时,我无法覆盖 html 样式。我要补充
html {
overflow-x: hidden
}
但它一直默认为
html {
overflow: auto
}
我尝试过!important,将其添加到页眉、页脚、自定义 html 模块等,但我无法覆盖默认的 HubSpot 样式。
【问题讨论】:
特殊性:如果html标签有class或id属性,则选择它覆盖原生的。
html.page {
overflow-x: hidden;
}
或者,如果您可以访问它,或者将样式内联到 html 页面中。
【讨论】:
请禁用包含样式表。
Primary CSS File : Disable 和
Include Domain Stylesheets : Disable
然后申请
html.no-js { overflow-x:hidden !important; }
【讨论】: