一个人如何在PHP
覆盖外部CSS
- 我的地方CSS
需要通过重要的变化 - 但是这一次必须拆除覆盖外部CSS
它不是直线前进,如HTML
我想这样做*position: none !important;}
在外部路径的CSS
是:position: absolute ;}
一旦这在开发人员模式f的除去rom浏览器的定位去我需要的地方。
这些工作,但不要把它放在我需要的是 -
absolute
fixed
relative
static
inherit
一个人如何在PHP
覆盖外部CSS
- 我的地方CSS
需要通过重要的变化 - 但是这一次必须拆除覆盖外部CSS
它不是直线前进,如HTML
我想这样做*position: none !important;}
在外部路径的CSS
是:position: absolute ;}
一旦这在开发人员模式f的除去rom浏览器的定位去我需要的地方。
这些工作,但不要把它放在我需要的是 -
absolute
fixed
relative
static
inherit
你应该投资一些时间学习到css-specificity。当涉及覆盖另一个CSS规则时,有一个完整的CSS点系统可以提供每个CSS选择器点。使用直接子选择器的点,使用内联样式,类,ID等的点。
然而,!important
是超人,它可以殴打几乎任何东西。 Another good source about this subject.
you can use the *{position: none !important;} styles form your index.php file.
Example:
<style type="text/css">
* {
position: none !important;
}
</style>
because the inline styles has the high priority. http://www.hongkiat.com/blog/css-priority-level/
您需要展示一些真实的HTML和CSS代码,并解释您需要覆盖它的意义以及您在“PHP中”所做的意义。 (如果PHP在某种程度上是相关的,那么这个问题也应该用“php”来标记。)也不是'position:none'不是有效的CSS。 –