How to avoid universal Rule CSS Asterisk(*)?

前端 未结 4 1957
南笙
南笙 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:15

    For all tables in your page: table { margin: 4px; }

    For a particular CSS class of table: table.someClass { margin: 4px; }

    For a specific table instance: table#someId { margin: 4px; }

提交回复
热议问题