我有这样的设计:
<body id="layout">
<div id="section-header">
<div class="widget" id="Pagelist1">
<div class="widget-wrap1">
<div class="widget-wrap2">
<div class="widget-content">
</div>
</div>
</div>
</div>
<div class="widget" id="Pagelist2">
<div class="widget-wrap1">
<div class="widget-wrap2">
<div class="widget-content">
</div>
</div>
</div>
</div>
</div>
</body>
要求:CSS 总是以body#layout
How can I style for widget-content
class(Pagelist2
ID 的子级)开头?
我尝试了这样的样式,但它不起作用:
body#layout > #Pagelist2 > .widget-content {....}
我想为班级设计风格.widget-content