F" selector, which is used to match all first-level child elements F of the E element; the subclass selector only refers to the direct descendants of the parent element, which you can understand as only acting For first-generation child elements, select via ">"."/> F" selector, which is used to match all first-level child elements F of the E element; the subclass selector only refers to the direct descendants of the parent element, which you can understand as only acting For first-generation child elements, select via ">".">

Home>Article>Web Front-end> What is css subclass selector

What is css subclass selector

青灯夜游
青灯夜游 Original
2020-12-24 13:59:23 5471browse

in css, the class="brush:js;toolbar:false" selector is value "e > f" selector, used to match all first-level child elements f of e element; subclass only refers direct descendants parent element , you can understand that it affects first generation elements, and selected through ">". < p>< blockquote>

What is css subclass selector< p>

the operating environment this article: windows10 system, css 3, thinkpad t480 computer.

recommended: css video tutorial< a><

subclass selector< strong>< span><

under subclasses are represented by >< code> symbols.

syntax explanation<

you should have noticed sub-selector uses greater than sign (sub-conjunction symbol).

subconjuncts whitespace characters on both sides, which optional. therefore, there no problem with following writing: p>

h1 strong h1> h1 >strong h1>strong< pre>

if read from right left, be interpreted as "select children element".

example:< >

    衣服
    • t恤< li>
    • 衬衣<
    • 短袖< < ul>
    • 裤子
    • 牛仔裤<
    • 休闲裤<
    • 七分裤< ul>< pre>

      this without any style, we display in browser follows:< title="1608789476333773.png"

      this follows: >