본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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