我有以下 HTML
<!DOCTYPE html>
<html>
<body>
<h1>My Great Web</h1>
<FONT SIZE = "5">
<ol>
<li> Foo. </li>
<li> Bar. </li>
<ol>
</FONT>
<br>
<hr style="width: 100%"/>
</body>
</html>
产生下图。
请注意,水平线没有完全延伸到左侧。我该怎么做?
最佳答案
您必须关闭您的 <ol>
<ol>
<li> Foo. </li>
<li> Bar. </li>
</ol>
关于html - 如何使 HTML 中的水平线 (<hr>) 跨越所有页面宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20212992/