Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the css status selectors?

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail what the css status selector has, and 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.

State selector

Selector description version commonly used: active mouse activated element 1 x: hover mouse hover element 1 √: link unaccessed link element 1 x: visited visited link element 1 x: target current anchor element 3 x: focus input focused form element 2 √: required input required form element 3 √: valid input legal form element 3 √: invalid input illegal form element 3 √: in-range input Form elements within the range 3 x: out-of-range outside the input range 3 x: checked option selected form element 3 √: optional option optional form element 3 x: enabled event enabled form element 3 x: disabled event disabled form element 3 √: read-only read-only form element 3 x: read-write readable and writable form element 3 x: target-within internal anchor element is active Element 4 ×: focus-within internal form element focused element 4 √: focus-visible input focused form element 4 ×: blank input empty form element 4 x: user-invalid input legal form element 4 x: indeterminate option uncertain form element 4 x: placeholder-shown space occupying display form element 4 √: current () element in browsing 4 x: past () browsed element 4 x: future () not checked Browsing element 4 ×: playing starting media element 4 ×: paused pausing media element 4 ×

What is the basic syntax of css? the basic syntax of css is: 1, the css rule consists of a selector and one or more declarations; 2, the selector is usually a HTML element that needs to change the style; 3, each declaration consists of an attribute and a value; 4, attributes and attribute values are separated by colons.

This is the end of this article on "what are the css status selectors?". 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.

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report