怪我咯2017-04-17 13:29:25
If you use rem, you don’t want to be compatible with ie8-... And why use rem when it’s so painful on the PC?
黄舟2017-04-17 13:29:25
You can use the rem.js plug-in to make it adaptable to rem.js;
Be sure to introduce it in the footer, that is, css, and this can only be executed after the dom is loaded
PHPz2017-04-17 13:29:25
Think about why you use rem.
What we usually call CSS pixels is logical pixels. On the PC side, a physical pixel is a logical pixel, but on the mobile side this is not the case. One CSS pixel may correspond to 4 physical pixels. One CSS pixel corresponds to one physical pixel, which can achieve good real-life effects. There is no definition of 0.5px. At this time, I found that px is not easy to use on the mobile terminal, so I thought of rem. (For knowledge about this part, it is recommended to read more articles)
Since the PC side can display it very well, why do we still need to use rem? Why should I care about ie8 compatibility?
天蓬老师2017-04-17 13:29:25
I would like to ask someone upstairs. I have an absolutely positioned container of p. The width and height are unknown and the maximum width is 1000px. How can I achieve equal or proportional width and height using only PX units without using rem, and be centered without using JS and CSS3 layout