是否使用*当重置CSS中的边距/填充时? [英] Is it wrong to use * when reseting Margins/Padding in CSS?

查看:88
本文介绍了是否使用*当重置CSS中的边距/填充时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下内容是否应该被忽略,或者因为它的简单性而被称赞?

Should the following be shunned, or praised for its simplicity?

为了记录,我在每个构建的网站上使用它,但我注意到它不是存在于许多主流CSS复位框架中。是否有理由不使用它?

For the record, I use it in every site I build, but I've noticed it's not present in many main-stream CSS-reset frameworks — is there a reason they don't use it too?

* { margin: 0; padding: 0; }


推荐答案

最好不要使用它,

请参阅 christianmontoya.com

这篇关于是否使用*当重置CSS中的边距/填充时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆