How css uses unset instead of resetting all properties
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!