Do we need “CSS reset” for mobile browsers also?

安稳与你 提交于 2020-01-10 14:22:26

问题


Do we need "CSS reset" for mobile specific site also? like we need for desktop browsers?

Can css reset on mobile sites decrease the performance of rendering?


回答1:


How strongly do you believe in CSS reset for the desktop?

I tend to agree with those who argue that CSS resets are too heavy-handed (have you ever read one? I'd never heard of some of those elements) and that ultimately, hand-crafted rules based on your actual needs will be most predictable and efficient.

The mobile platform only makes bandwidth even more precious. I guess that's why you're asking. I'd say, whittle a standard reset down to what you really need.




回答2:


If you are targeting must modern smartphones like Android or iPhone devices, a CSS reset isn't too helpful because there isn't that much variation there. However, the overall mobile browser scene now is pretty chaotic. There is so much variation among the browser types, browser versions, operatiing systems, screen sizes and resolution, etc. I believe a CSS reset helps provide a better starting point for your styles and will help avoid headaches down the road.



来源:https://stackoverflow.com/questions/3730165/do-we-need-css-reset-for-mobile-browsers-also

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!