littlecodeguy

曲中作樂,以曲為生

css 一行 reset 所有 element properties

最近發現 css 有個 property 叫「all」,可以用嚟一次過賦值比所有 element’s properties, 非常適合用嚟 reset element。

最近發現 css 有個 property 叫「all」,可以用嚟一次過賦值比所有 element’s properties, 非常適合用嚟 reset element。


https://littlecodeguy.com/post/2022-06-04-how-to-reset-css-in-oneline/

CC BY-NC-ND 2.0

Like my work?
Don't forget to support or like, so I know you are with me..

Want to read more ?

Login with one click and join the most diverse creator community.