代码之家  ›  专栏  ›  技术社区  ›  ConfusedDeer

如何使用浏览器检查工具检查网站上的所有.css/.scss类?

  •  1
  • ConfusedDeer  · 技术社区  · 7 年前

    具体来说,GitHub中pull请求字段中指定的CSS类的所有样式?

    字段引用了类,但我在检查器中没有看到它。例如,在pull request body字段中,我看不到任何 js- ***CSS类属性:

    <textarea name="pull_request[body]" id="pull_request_body" placeholder="Leave a comment" aria-label="Comment body" class="form-control input-contrast comment-form-textarea js-comment-field js-paste-markdown js-task-list-field js-quick-submit js-size-to-fit js-suggester-field js-session-resumable js-saved-reply-shortcut-comment-field"></textarea>
    
    1 回复  |  直到 7 年前
        1
  •  1
  •   Mosh Feu Alex Chen    7 年前

    也许没有。根据我的经验,如果一开始 js- 这意味着它意味着 js公司 选择器。比如: document.querySelector('js-paste-markdown').addEventsListener ...

    你可以在他们的代码里看到。例如,班级 js-saved-reply-shortcut-comment-field :

    screenshot of the code example

    https://philipwalton.com/articles/decoupling-html-css-and-javascript/ (搜索 js-* )