:only-child

The :only-child pseudo-class selector property in CSS represents an element that has a parent element and whose parent element has […]

Continue Reading

:only-of-type

The :only-of-type pseudo-class selector in CSS represents any element that has no siblings of the given type. p:only-of-type { color: […]

p:only-of-type { font-size: 120% }
Continue Reading

:optional

The :optional pseudo class targets inputs (including <select>s) that are not specifically set as required (do not have the required attribute). This can be useful when you […]

.element:optional { background: #f8a100; }
Continue Reading

:out-of-range

The :out-of-range pseudo selector in CSS matches input elements when their value is outside the range specified as being acceptable. […]

input:out-of-range { border: 5px solid red; }
Continue Reading
  翻译: