覆盖“style =”中的属性属性? [英] Override property in "style=" attribute?
问题描述
CKEditor使用背景图片硬编码按钮图片, position:0px 0pt
。我不想改变这一点,因为它似乎是在编辑的核心。
但是,我可以为样式表中的按钮和样式设置一个自定义类。但是因为background-position语句是在style属性中做的,我不能覆盖它从一个类,甚至不使用!important
。
有什么方法可以覆盖CSS类中 style =
属性中的CSS属性 >
我不认为有。任何人都知道任何解决方法?
覆盖 c $ c>属性是使用
!important
。
I am trying to adjust the position of the background image of a button in CKEditor.
CKEditor hard-codes button images with background-position: 0px 0pt
. I don't want to change this, as it seems to be in the editor's core.
I can, however, set a custom class for the button and style that in the style sheet. But because the background-position statement is made in the style attribute, I can't overwrite it from a class, not even using !important
.
Is there any way to override a CSS property in the style=
attribute in a CSS class?
I don't think there is. Anybody know any workarounds?
The only way to override the properties specified in a style
attribute is to use !important
.
这篇关于覆盖“style =”中的属性属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!