9

疑似要素のCSSを操作し:beforeたり:after、Firebugを使用したりすることはできますか?これらはブラウザによって内部的に処理される特定の要素であることは知っていますが、Firebugはより低レベルのアクセス権を持っているので(おそらく)、これらを操作する機能もあるかもしれません。

4

3 に答える 3

4

You can edit a stylesheet in the CSS tab and

  • add new rules for pseudo-elements
  • alter existing pseudo-element rules

However, I can't find any pseudo-element styles in the computed styles panel. Probably because the styles don't apply to the elements but rather their contained pseudo-elements. Neither can I find a way to inspect pseudo-elements using Firebug.

于 2011-03-28T12:18:10.467 に答える
1

この問題の原因となっているFirefoxのバグが解決されたため、疑似要素(::beforeや::afterなど)がFirebugの「スタイルサイドバー」に表示されるはずです。すべての場合に機能するわけではありませんが、ほとんどの場合に機能するようです。

問題の原因となっているFirefoxのバグについて詳しくは、 https://bugzilla.mozilla.org/show_bug.cgi?id=557726を ご覧ください。

于 2011-07-07T12:02:39.160 に答える
-1

親のTAGをクリックすると、右側にその:after /:beforeクラスが表示されます。

ここに画像の説明を入力してください

于 2016-01-16T08:48:33.960 に答える