選擇body字體大小

默認大小為16px

Pixels EMs Percent Points
6px0.375em37.5%5pt
7px0.438em43.8%5pt
8px0.500em50.0%6pt
9px0.563em56.3%7pt
10px0.625em62.5%8pt
11px0.688em68.8%8pt
12px0.750em75.0%9pt
13px0.813em81.3%10pt
14px0.875em87.5%11pt
15px0.938em93.8%11pt
16px1.000em100.0%12pt
17px1.063em106.3%13pt
18px1.125em112.5%14pt
19px1.188em118.8%14pt
20px1.250em125.0%15pt
21px1.313em131.3%16pt
22px1.375em137.5%17pt
23px1.438em143.8%17pt
24px1.500em150.0%18pt

常用大小

轉換后的結果

Pixels EMs Percent Points
6px0.400em40.0%5pt
7px0.467em46.7%5pt
8px0.533em53.3%6pt
9px0.600em60.0%7pt
10px0.667em66.7%8pt
11px0.733em73.3%8pt
12px0.800em80.0%9pt
13px0.867em86.7%10pt
14px0.933em93.3%11pt
15px1.000em100.0%11pt
16px1.067em106.7%12pt
17px1.133em113.3%13pt
18px1.200em120.0%14pt
19px1.267em126.7%14pt
20px1.333em133.3%15pt
21px1.400em140.0%16pt
22px1.467em146.7%17pt
23px1.533em153.3%17pt
24px1.600em160.0%18pt

自定義轉換

自定義px、em相互轉換

1. 請輸入一個基礎像素

px

2. 轉換

PX 轉 EM
px
or
EM 轉 PX
em
轉 換

3. 結果

How do I convert between PX, EM, %, and PT?

Note: 16px is used as the body text size in all conversions because that is the browser default. You will change 16px to your base text size.

PX to EM
Formula: size in pixels / parent size in pixels
Example: 12px / 16px = .75em
PX to %
Formula: size in pixels / parent size in pixels * 100
Example: 12px / 16px * 100 = 75%
PX to PT
Formula: size in pixels * (points per inch / pixels per inch)
Example: 16px * (72pt / 96px) = 12pt
EM to PX
Formula: size in EMs * parent size in pixels
Example: .75em * 16px = 12px
EM to %
Formula: size in EMs * 100
Example: .75em * 100 = 75%
?

在線站長工具

在線參考手冊

@百度,什么時候過來談收購?
四川快乐12开奖时间