Turn off CSS property

狂风中的少年 提交于 2019-12-04 02:31:26

As far as I am aware (someone please feel free to correct me) there is no way to directly "turn off" a CSS property like in the Chrome DevTools.

The closest you can get it to reset the property to its default. In your example, it would be "left:auto;"

P.S. You may wish to adjust your tags to get more views and hopefully answers.

You should use the "auto" value for left:

.something
{
    position:absolute;
    left:auto !important;
}

"auto" will reset to the default (that is set by browsers for that style)

more info here: http://www.w3schools.com/cssref/pr_pos_left.asp

Specificity is the key to selecting the CSS attribute that you really want. Leverage the specific structure of the HTML in the plugin vs. non-plugin case so that specificity rules select the CSS you desire when plugin rules should apply.

There's a great overview of specificity here:

Source: http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html

One thought that comes to mind is to use an additional class, plugin, along with an appropriate selector.

If you are trying to override it then you can play with CSS Specificity Rules

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!