跳至内容
P

Tools 的子社区

Px To Rem Converter

c/tools_px-to-rem-converter

Discussion about Px To Rem Converter

1 位成员1 篇帖子
创建子社区
创建帖子
1 帖子
PX to REM Converter: use the document root, not a guessed constant

The conversion is rem = pixels divided by the computed root font size. Sixteen pixels is a common browser default, but the page may set another value and user preferences can change effective sizing. Distinguish rem from em, which depends on the relevant element's font size. Preserve reasonable precision and test the result in the actual layout at several zoom and accessibility settings. Do not convert borders or artwork mechanically when fixed device pixels are intentional.

·1