Get the App
SLTechnology News&Howtos  ›  Development  › 

How css uses SVG for icons

Shulou Source: shulou.com Published: 2022-06-01 07:06:24 10月04日 Update

This article will explain in detail how css uses SVG for icons. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Use SVG with icons

There is no reason why we should not use SVG for icons:

.logo {background: url ("logo.svg");}

SVG is scalable for all resolution types and supports all browsers to return to IE9. This avoids .png, .jpg, or .gif files.

This is the end of the article on "how css uses SVG for icons". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Icons articles more no good practical good content resolution extensibility files articles browsers reasons knowledge types references help support related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Microsoft Shulou Tech Info Shulou Technology Huawei