search

Home  >  Q&A  >  body text

Is the example here wrong?

In the CSS Basic Tutorial Combination Selector, are the examples of descendant element selectors and child element selection examples exchanged? These two examples do not seem to correspond to the example code. Descendant element selector example: div .title{ color:red;}. The example is div h1.title{background-color:yellow;} div p.paragraph{background-color:#88ff88;}

肥涛肥涛2228 days ago1143

reply all(1)I'll reply

  • 秋香姐家的小书童

    秋香姐家的小书童2018-10-27 10:38:47

    I don’t quite understand what you said, but here div h1.title{background-color:yellow;} The child element .title under H1 needs to have a space between it and H1

    reply
    0
  • Cancelreply