如何通过 Firebug (Firefox) 跟踪计算样式?
How do I trace a Computed style via Firebug (Firefox)?
我在 Firebug 中看到了元素的计算样式(例如宽度),但我如何找出它们的确切原因?
主样式选项卡没有用。 “样式”选项卡未捕获的某个地方发生了变化。我需要准确追踪导致当前布局的原因,Firebug 是错误的工具吗?
Computed 侧面板允许您展开计算样式以查看样式轨迹。
请注意 Firebug 2.0.16 has a bug in combination with Firefox 46.0 that is breaking that feature, i.e. you'll see all properties under the Other section and they are not expandable and are not filtered. This bug is already fixed,虽然还没有新版本。
我在 Firebug 中看到了元素的计算样式(例如宽度),但我如何找出它们的确切原因?
主样式选项卡没有用。 “样式”选项卡未捕获的某个地方发生了变化。我需要准确追踪导致当前布局的原因,Firebug 是错误的工具吗?
Computed 侧面板允许您展开计算样式以查看样式轨迹。
请注意 Firebug 2.0.16 has a bug in combination with Firefox 46.0 that is breaking that feature, i.e. you'll see all properties under the Other section and they are not expandable and are not filtered. This bug is already fixed,虽然还没有新版本。