要素5
要素6
<style>
.demo_css_sprt, .demo_css_sprt div {
border: dotted 1px red;
padding:1em;
}
.demo_css_sprt div {
margin: 1em 0;
}
.demo_css_sprt div[class$="cd"] {
background: mistyrose;
}
.demo_css_sprt p {
border: dashed 1px blue;
padding:1em;
}
</style>
<div class="demo_css_sprt">
要素1
<div class="abc">要素2</div>
<div class="cd">要素3</div>
<div class="bcd">要素4</div>
<p class="bcd">要素5</p>
<p class="cde">要素6</p>
</div>