我们需要“CSS重置”吗?也适用于移动浏览器?
我们是否也需要针对移动特定网站进行“CSS 重置”?就像我们需要桌面浏览器一样?
移动网站上的 CSS 重置会降低渲染性能吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您对桌面 CSS 重置有多相信?
我倾向于同意那些认为 CSS 重置过于严厉的人(你读过 CSS 重置吗?我从未听说过其中一些元素),并且最终,根据你的实际需求手工制定的规则将是最重要的可预测且高效。
移动平台只会让带宽变得更加珍贵。我想这就是你问的原因。我想说,将标准重置削减到您真正需要的程度。
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.
如果您的目标是 Android 或 iPhone 等现代智能手机,则 CSS 重置并没有太大帮助,因为那里没有太多变化。然而,现在整个移动浏览器场景相当混乱。浏览器类型、浏览器版本、操作系统、屏幕尺寸和分辨率等之间存在很大差异。我相信 CSS 重置有助于为您的样式提供更好的起点,并有助于避免日后的麻烦。
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.