自定义FF DOM Inspector

时间:2013-05-10 18:11:30

标签: firefox dom-inspector

如何自定义Firefox DOM Inspector?白色和字体大小使其难以阅读。

1 个答案:

答案 0 :(得分:0)

我找到了解决方案。我用的是时尚插件 https://addons.mozilla.org/en-US/firefox/addon/stylish/

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url("chrome://browser/content/devtools/markup-view.xhtml") {

body { background: white !important }

}

以上是仅供背景的示例。另一个css示例如下。

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

* {
  padding: 0;
  margin: 0;
}

body {
  color: hsl(0,0%,50%);
  background: black !important;
}

.text {
  color: white !important;
}

.newattr {
  cursor: pointer;
}

.selected {
  background-color: hsl(0,0%,90%);
}

/* Give some padding to focusable elements to match the editor input
 * that will replace them. */
span[tabindex] {
  display: inline-block;
  padding: 1px 0;
}

li.container {
  position: relative;
  padding: 2px 0 0 2px;
}

.codebox {
  padding-left: 14px;
}

.expander {
  position: absolute;
  -moz-appearance: treetwisty;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
}

.expander[expanded] {
  -moz-appearance: treetwistyopen;
}

.more-nodes {
  padding-left: 16px;
}

.styleinspector-propertyeditor {
  border: 1px solid #CCC;
}


}

Source