gpt4 book ai didi

html - 有序列表和子列表问题 HTML

转载 作者:行者123 更新时间:2023-11-28 02:10:58 25 4
gpt4 key购买 nike

这是我的代码:

      <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>

然后当我使用此代码时,第一个名为“关于瑞典的常见问题解答”的列表在错误的一侧有罗马数字(从有序列表中给它的那个)。所以基本上它看起来像这样:

关于瑞典的常见问题。二、

什么时候应该看起来像:

二。关于瑞典的常见问题。

我不知道如何把它放在问题的开头。所有其他列表和子列表都运行良好,但这个列表不知何故搞砸了……请帮助:)

最佳答案

这是你想要的吗?

  1. 关于瑞典的常见问题
    • 瑞典是什么地方?

    • 瑞典什么时候停止参战的?

    • 瑞典是欧盟的一部分吗?

    • 瑞典有过科学革命吗?

    • 诺贝尔奖真的来自瑞典吗?

  2. 更多问题

    • 瑞典是否拥有许多发明专利?

    • 瑞典的教育体系是如何运作的?

    • 瑞典的学校如何筹资?


<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>

关于html - 有序列表和子列表问题 HTML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8407236/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com