【问题标题】:Customize the FF DOM Inspector自定义 FF DOM 检查器
【发布时间】:2013-05-10 18:11:30
【问题描述】:

如何自定义 Firefox DOM 检查器?白色和字体大小让人难以阅读。

【问题讨论】:

    标签: firefox dom-inspector


    【解决方案1】:

    我找到了解决方案。我使用了时尚插件
    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

    【讨论】:

    • 你能帮我提供类似的 webconsole url,我想更改字体大小但无法获取目标 url
    • 您能详细说明一下吗?我是中级用户,所以虽然我不能向您保证我将能够解决您的需求,但我会尝试一下。
    • 哦,干得好。我正在尝试设置 websole 的样式,但无法获取目标 url,但找到了。
    猜你喜欢
    • 1970-01-01
    • 2012-11-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-15
    • 2018-07-28
    相关资源
    最近更新 更多