【发布时间】:2012-04-10 13:18:39
【问题描述】:
我正在尝试设置一些 Drupal 输出的样式。特别是,我试图引用一个具有超长名称(包括空格)的类。我不清楚这个的语法。原谅我,我是 CSS 新手。见:
<article id="node-38" class="node node-article node-teaser contextual-links-region node-even published with-comments node-teaser clearfix" about="/~actionin/node/38" typeof="sioc:Item foaf:Document">
<header>
<h2 property="dc:title" datatype=""><a href="/~actionin/node/38">National Nutrition Month: March 2012: “Get Your Plate in Shape”</a></h2>
我最终想引用 H2 属性。我在想它会是这样的:
.node SOMETHING-HERE .header h2 { declaration; }
我不能只引用节点,因为它在其他地方用于其他目的。我想具体一点,只选择这个类:
class="node node-article node-teaser contextual-links-region node-even published with-comments node-teaser clearfix"
【问题讨论】:
-
这实际上是 九个类,而不是一个中间有空格的类。