【问题标题】:Remove inline style from body element that is automatically added by WordPress Liveblog从 WordPress Liveblog 自动添加的 body 元素中删除内联样式
【发布时间】:2014-03-05 19:18:50
【问题描述】:

我正在使用 WordPress Liveblog (see here on Github)。出于某种原因,position: relative; 被作为内联样式添加到我的 body 元素中。例如<body class="blah" style="position: relative;">

我不知道如何添加内联样式。我需要删除它。希望有人知道如何做到这一点?

【问题讨论】:

  • 插件的任何js中都没有看到。你确定不是别的吗?
  • 我 100% 确定,因为当我停用 Liveblog 插件时,样式会被删除。
  • 当您使用 firebug 检查时,它会告诉您它在哪个文件中?
  • 它没有给出文件名。它只是说element.style { position: relative; }
  • 如果你用属性的不同属性覆盖它会发生什么?使用!重要。试试 body{property:inherit!important}

标签: php jquery css wordpress


【解决方案1】:

如果你用属性的不同属性覆盖它会发生什么?使用!重要。

试试body{property:inherit!important}

【讨论】:

  • 这很棒!谢谢你。我稍微调整了一下 - body { position: static !important; }
猜你喜欢
  • 2020-03-24
  • 1970-01-01
  • 1970-01-01
  • 2015-08-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-03-25
相关资源
最近更新 更多