Get the App
SLTechnology News&Howtos  ›  Development  › 

How css uses unset instead of resetting all properties

Shulou Source: shulou.com Published: 2022-06-01 06:11:39 10月27日 Update

This article mainly shows you "css how to use unset instead of resetting all properties", the content is easy to understand, well-organized, hope to help you solve your doubts, the following let Xiaobian lead you to study and learn "css how to use unset instead of resetting all properties" this article.

Use unset instead of resetting all properties

When you reset the attributes of an element, you do not need to reset each individual attribute:

Button {background: none; border: none; color: inherit; font: inherit; outline: none; padding: 0;}

You can use the all abbreviation to specify the attributes of all elements. Setting this value to unset changes the attribute of the element to its initial value:

Button {all: unset;}

Note: all shorthand is not supported in IE11 and Edge support is currently being considered. IE11 does not support unset.

This is all the content of the article "how css uses unset instead of resetting all properties". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Attributes elements content articles support learning help easy to understand more organization ongoing knowledge shorthand editing industry information information channels channels research Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Microsoft Shulou Information Redmi Xiaomi