开发者

CSS Style Question

开发者 https://www.devze.com 2023-01-23 06:05 出处:网络
In the following style: .slider div div div h2 span { color:#ae663d;} What is the purpos开发者_如何转开发e of \"div div div\"?It specifies that the rule applies to span tags, contained in h2 tags,

In the following style:

.slider div div div h2 span { color:#ae663d;}

What is the purpos开发者_如何转开发e of "div div div"?


It specifies that the rule applies to span tags, contained in h2 tags, contained in three nested divs, under a tag with class 'slider'.

Something like this, where the <span> containing "here" will be matched:

<body class="slider">

  <div>
    <div>
      <div>
        <h2>Header text <span>here</span></h2>
      </div>
    </div>
  </div>

</body>
0

精彩评论

暂无评论...
验证码 换一张
取 消