移动端
1.下载lib-flexible 会自动把width分成10份
如iphone6 分辨率750x1334
iphone6在网页上css像素为375x667
设计图是1125x2006,通过比较得出是以ihpone6适配的
那需要把cssrem设成375/10=37.5
例 iphone5 cssrem设成320/10=32
2.设置cssrem 为37.5 (1rem=37.5px)
移动端
1.下载lib-flexible 会自动把width分成10份
如iphone6 分辨率750x1334
iphone6在网页上css像素为375x667
设计图是1125x2006,通过比较得出是以ihpone6适配的
那需要把cssrem设成375/10=37.5
例 iphone5 cssrem设成320/10=32
2.设置cssrem 为37.5 (1rem=37.5px)