rem 和 px,%,em,vw vh 一种响应式的尺寸单位,一般用在移动端(H5)开发。 你写的 1 rem * html上font-size 16px = 实际的px单位 1: 媒体查询 2: 用js动态计算