In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the meaning of wildcards in css. It has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.
The wildcard character is represented by an asterisk "*", which means "all" and is a selector in css; it is the most versatile of all selectors in css, matching all the elements on the page, and the syntax is "* {attribute name: attribute value;.}".
The operating environment of this tutorial: windows7 system, CSS3&&HTML5 version, Dell G3 computer.
The wildcard is represented by an asterisk "*", which means "all" and is a selector in css.
The wildcard selector "*" is the most versatile of all selectors, matching all the elements on the page.
Basic grammatical format
Example one
Here I write three selectors, which are element selector, id selector and class selector. The HTML code is as follows
It is said that the birds do not love each other, there are thousands of miles high in the sky. It is impossible to have a mind in life, even though you are a hundred years old. If you want to climb the mountain, don't use the rainbow as a ladder.
Then we set all the text colors to blue through the wildcard selector, and the CSS code is as follows
* {color: blue;}
The effect of the browser is as follows
As you can see, we don't set the CSS style for each selector, but the text color of each selector is also changed to blue, which is the wildcard selector.
Example two
For example, the following code uses a wildcard selector to define the CSS style, clearing the default margins for all HTML tags.
* {margin:0; / * clear the outer margin * / padding: 0; / * clear the inner margin * /} Thank you for reading this article carefully. I hope the article "what is the meaning of wildcards in css" shared by the editor will be helpful to you. At the same time, I hope you will support us, pay attention to the industry information channel, and more related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.