所以这是我的代码:
<div class="faq">
<br />
<ol>
<li>Frequently asked questions about Sweden</li>
<li><a href="#faq1">What and where is Sweden?</a>
<ul>
<li><a href="#faq2">When did Sweden stop participating in wars?</a></li>
<li><a href="#faq3">Is Sweden a part of the European Union?</a>
<ul>
<li><a href="#faq4">Did Sweden ever have a scientific revoution?</a></li>
<li><a href="#faq5">Did the Nobel Prize really come from Sweden?</a></li>
</ul>
</li>
</ul>
</li>
</ol>
<ol>
<li>More Questions
<ul>
<li><a href="#faq6">Does Sweden hold many patents on their inventions?</a></li>
<li><a href="#faq7">How does the Swedish educational system work?</a></li>
<li><a href="#faq8">How is school financed in Sweden?</a></li>
</ul>
</li>
</ol>
当我使用此代码时,第一个名为“瑞典常见问题”的列表在其错误的一侧有其罗马数字(从有序列表中给出的数字)。 所以基本上它看起来像这样:
有关瑞典的常见问题。 II。
什么时候看起来像:
II。有关瑞典的常见问题。
我不知道如何把它放在问题的开头。所有其他列表和子列表表现良好,但这个有点混乱...... 请帮助:)
答案 0 :(得分:1)
这是你想要的吗?
<html>
<head>
</Head>
<body>
<ol>
<li>Frequently asked questions about Sweden</li>
<ul>
<li><a href="#faq1">What and where is Sweden?</a></li>
<li><a href="#faq2">When did Sweden stop participating in wars?</a></li>
<li><a href="#faq3">Is Sweden a part of the European Union?</a></li>
<li><a href="#faq4">Did Sweden ever have a scientific revoution?</a></li>
<li><a href="#faq5">Did the Nobel Prize really come from Sweden?</a></li>
</ul>
<li>More Questions
<ul>
<li><a href="#faq6">Does Sweden hold many patents on their inventions?</a></li>
<li><a href="#faq7">How does the Swedish educational system work?</a></li>
<li><a href="#faq8">How is school financed in Sweden?</a></li>
</ul>
</ol>
</body>
</html>