我似乎无法覆盖用户代理 CSS 设置,即使我使用 !
。
我将按钮作为链接并使用 AngularJS。我在下面添加了一个屏幕截图:
请注意即使使用 !
我也无法覆盖 background-color
。
我在 View 中使用 sass 和 haml。
最佳答案
none
不是 background-color
的有效值,但它是 background
简写的有效值。混淆来自于它似乎很自然地认为速记中的 none
值设置 background-color
,但它实际上指的是 background-image
属性。
改用background-color: transparent
。
关于css - 我如何覆盖用户代理——使用来自 angularjs 的按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27392463/