📚【HTML】フォントサイズ(font-size)について2023/06/29に公開HTMLtech rem rem(root em) html { font-size: 10px; } h1 { font-size: 1.2rem; } /* 12px相当(12 / 10 == 1.2) */ /* px → rem の変換 */ 12px / 10px == 1.2rem /* rem → px の変換 */ 1.2rem * 10px == 12px https://marycore.jp/prog/css/rem-root-em/#:~:text=remによる倍率は 対象,求めることになります。 Discussion
Discussion