E: in-range pseudo class selector and E: out-of-range pseudo class selector,

Source: Internet
Author: User

E: in-range pseudo class selector and E: out-of-range pseudo class selector,

E: The in-range pseudo-class selector is used to specify that when the element's valid values are limited to a certain range (usually limited by min and max attribute values ), the style used when the actual input value is within this range.
E: out-of-range pseudo-class selector is used to specify that when the element's valid value is limited to a certain range (usually limited by min and max attribute values ), the style used when the actual input value is out of this range.
Code list is an example of how to use an E: in-range pseudo-class selector and E: out-of-range pseudo-class selector. The example page contains a value input control (the input element whose type attribute value is number). The valid input values in the element are limited by the min attribute value and the max attribute value from 1 to 100, and the E: when the in-range pseudo-class selector specifies the input value of an element in this range, the background color of the element is white, through E: the out-of-range pseudo-class selector specifies that the background color of an element is red when the input value in the element is out of this range.
Code List 19-27 use example of E: in-range pseudo-class selector and E: out-of-range pseudo-class selector

<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.