Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the use of the icon attribute in css3

Shulou Source: shulou.com Published: 2022-06-01 12:15:03 11月13日 Update

This article mainly introduces what is the use of the icon attribute in css3, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

CSS3icon attribute

What it does: the icon attribute provides creators with the ability to set elements as icon equivalents.

Syntax:

Icon:auto | URL

Auto: use the default generic icon provided by the browser.

URL: references one or more icons in a list, separated by commas.

Note:

1. Unless the value of the "content" attribute is set to "icon", the icon of the element will not be used.

2. Currently, no major browsers support icon attributes.

An example of using the CSS3icon attribute

Set the image element to the iconic equivalent:

Img

{

Content:icon

Icon:url (imgicon.png)

}

Thank you for reading this article carefully. I hope the article "what is the use of icon attributes in css3" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Attributes icons articles elements browsers equivalents support browsing mainstream values roles interests creators simultaneously images multiple more friends knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia OPPO Reno Linux Xiaomi MariaDB