css - rem如何兼容ie呢?
怪我咯
怪我咯 2017-04-17 13:27:25
0
5
915

rem如何兼容ie呢?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(5)
刘奇

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?

黄舟

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

PHPzhong

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?

Peter_Zhu

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

小葫芦

Did your friend solve it?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!