我在我的新项目中使用 960gs,我注意到它以某种方式禁用了列表编号。我猜那是因为浮动。这是代码:
<ol>
<li class="prefix_1 grid_11">
<h2>q</h2>
<ul>
<li><input type="radio" id="q1a1" value="1" name="question-1"><label for="q1a1">1</label></li>
<li><input type="radio" id="q1a2" value="2" name="question-1"><label for="q1a2">2</label></li>
<li><input type="radio" id="q1a3" value="3" name="question-1"><label for="q1a3">3</label></li>
<li><input type="radio" id="q1a4" value="4" name="question-1"><label for="q1a4">4</label></li>
</ul>
</li>
<li class="suffix_1 grid_11">
<h2>q?</h2>
<ul>
<li><input type="radio" id="q2a1" value="1" name="question-2"><label for="q2a1">1</label></li>
<li><input type="radio" id="q2a2" value="2" name="question-2"><label for="q2a2">2</label></li>
<li><input type="radio" id="q2a3" value="3" name="question-2"><label for="q2a3">3</label></li>
<li><input type="radio" id="q2a4" value="4" name="question-2"><label for="q2a4">4</label></li>
</ul>
</li>
</ol>
在 CSS 中,我简单地说
ol {
list-style: decimal inside;
}