18px bằng bao nhiêu rem
Kết quả (rem)1.125rem
18px bằng 1.125rem (với font-size gốc 16px).
Cách tính
18 ÷ 16 = 1.125 remTính với font-size gốc mặc định của trình duyệt: `html { font-size: 16px; }`
Common px → rem conversions (base 16px)
| px | rem |
|---|---|
| 8px | 0.5rem |
| 12px | 0.75rem |
| 16px | 1rem |
| 20px | 1.25rem |
| 24px | 1.5rem |
| 32px | 2rem |
| 40px | 2.5rem |
| 48px | 3rem |
| 64px | 4rem |
Dùng công cụ chuyển đổi
ví dụ: "18px to rem"
Loading tool...