当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

h1 font-size in section

  • 3 件の返信
  • 1 人がこの問題に困っています
  • 1 回表示
  • 最後の返信者: johannes

more options

The stock html.css renders h1 tags inside a section with equal size as h2 both in and outside a section.

If h1 font-size is different inside a section than also a h2 font-size is expected to have different, smaller size.

The stock html.css renders h1 tags inside a section with equal size as h2 both in and outside a section. If h1 font-size is different inside a section than also a h2 font-size is expected to have different, smaller size.

選ばれた解決策

If you believe this to be a bug -- File a bug report at https://bugzilla.mozilla.org -- Once there if you have not an account already, you will need to create one. When registered follow the documentation for bug filing to help you get started.

この回答をすべて読む 👍 0

すべての返信 (3)

more options

選ばれた解決策

If you believe this to be a bug -- File a bug report at https://bugzilla.mozilla.org -- Once there if you have not an account already, you will need to create one. When registered follow the documentation for bug filing to help you get started.

more options

That is odd: https://jsfiddle.net/1v2L9Lkm/

This is the internal rules file that scales down h1 depending on how many of article, aside, nav, or section it is nested in. As you point out, that does not apply to other heading types.

https://dxr.mozilla.org/mozilla-release/source/layout/style/res/html.css#185

I don't know if this will be changed (maybe there's a standard??), but you could file a bug: https://bugzilla.mozilla.org/

Until then, you would need to override the built-in rule with your own CSS.

more options