CSS font-size 文字大小比較表
屬性值 | 語法 | 呈現效果 |
px | <span style="font-size:13px;">13px</span><br> <span style="font-size:16px;">16px</span><br> <span style="font-size:18px;">18px</span> | 13px 16px 18px |
em | <span style="font-size:1em;">1em</span><br> <span style="font-size:2em;">2em</span> | 1em 2em |
cm | <span style="font-size:1cm;">1cm</span><br> <span style="font-size:1.2cm;">1.2cm</span><br> | 1cm 1.2cm |
xx-small | <span style="font-size:xx-small;">xx-small</span> | xx-small |
x-small | <span style="font-size:x-small;">x-small</span> | x-small |
small | <span style="font-size:small;">small</span> | small |
smaller | <span style="font-size:smaller;">smaller</span> | smaller |
medium | <span style="font-size:medium;">medium</span> | medium |
large | <span style="font-size:large;">large</span> | large |
x-large | <span style="font-size:x-large;">x-large</span> | x-large |
xx-large | <span style="font-size:xx-large;">xx-large</span> | xx-large |
larger | <span style="font-size:larger;">larger</span> | larger |
% | <span style="font-size:100%;">100%</span><br> <span style="font-size:120%;">120%</span><br> | 100% 120% |
inherit | <span style="font-size:inherit;">inherit</span> | inherit |
延伸閱讀