How to avoid universal Rule CSS Asterisk(*)?

前端 未结 4 1955
南笙
南笙 2021-01-13 19:45

I have a table

and also a CSS Rule *{margin:0;padding:0;}

Now I want to nullify the effect of \"margin:0<

4条回答
  •  别那么骄傲
    2021-01-13 20:23

    I don't think it is possible: declaring * { margin: 0; padding: 0; } removes the default values, and you cannot "restore" them, unless you have some known default values (you don't know which values the browser has by default).

提交回复
热议问题