【问题标题】:cant style a button in chrome extension page无法在 chrome 扩展页面中设置按钮样式
【发布时间】:2019-12-18 09:23:14
【问题描述】:

我正在构建一个 chrome 扩展程序,我有选项页面,但似乎 Chrome 覆盖按钮默认样式,所以我无法在 :hover:focus 上设置按钮样式。

选项页面上的 chrome 扩展是否会禁用某些 CSS?尤其是选项页面,因为我的弹出页面不受影响。

我的 CSS :

.button.is-primary {
    background-color: #7957d5;
    border-color: transparent;
    color: white;
}

但按钮在选项页面上看起来相同。

【问题讨论】:

  • 1) 尝试添加"chrome_style":false,如documentation 所示,2) 尝试使用!important
  • @wOxxOm 哦,谢谢,永远不知道在文档上!你可以回答问题,chrome_style: false 解决了我的问题。

标签: css google-chrome google-chrome-extension


【解决方案1】:

1) 尝试添加 "chrome_style":false 如文档所示, 2)尝试使用!重要。 ——

@wOxxOm 评论解决了我的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-14
    • 1970-01-01
    • 2023-03-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多