Firefox Web Developer样式编辑器不显示JavaScript中添加的CSS

时间:2019-01-09 14:50:02

标签: css debugging firefox web-developer-toolbar

当我在JavaScript中添加CSS规则时,它不会在Firefox样式编辑器中显示。我该怎么做才能在样式编辑器中显示它们?

最小工作示例

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <style></style>
</head>
<body>
  <script>
    document.styleSheets[0].insertRule("body {background-color:blue;}");
  </script>
</body>
</html>

样式编辑器为空:

empty Style Editor

我使用Firefox Developer Edition 65.0b8(64位)。

0 个答案:

没有答案
相关问题