html - ubuntu chromium 错误的 html 渲染

标签 html css ubuntu web chromium

ubuntu chromium 浏览器中的 HTML 渲染显示错误

当我加载这个 html...

<ol><li>09522869</li><ol><li><a href="http://localhost/pat_book/cm/rc/1d97c261216923c39d1cf0af9b59966a/09522869_892_1">892_1</li>

    <li><b>892_0&nbsp;&nbsp;&#10004;</b>

</li><li><a href="http://localhost/pat_book/cm/rc/1d97c261216923c39d1cf0af9b59966a/09522869_892_2">892_2</li></ol></ol>

在第二个 'li' 元素中 - 我没有添加任何 'a' 标记( anchor 标记),但它会在 chrome 浏览器中自动显示一个 'a' 标记,其 href 为以前的 'li' 'a'

您可以看到它将上述代码保存在一个 html 文件中并在 chrome 浏览器中打开它

我的 ubuntu Chrome 版
版本 32.0.1700.107 Ubuntu 12.04 (32.0.1700.107-0ubuntu0.12.04.1~20140204.866.1)

最佳答案

您的 HTML 格式不正确。你错过了关闭</a>对于您的<a>标签,你有额外的开口<ol>标签:

<ol><li>09522869</li><ol>

如果您的意图是嵌套列表,您的子 <ol>需要包含在 <li> 中:
<ol>
  <li> Item
    <ol>
      <li> Nested item
    </ol>
  </li>
</ol>

关于html - ubuntu chromium 错误的 html 渲染,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22180383/

相关文章:

html - 背景图像在 CSS3 中不起作用

java - 哪个 UI 组件可以包含静态 html 文件?

javascript - 使用浏览器窗口调整幻灯片背景大小

javascript - 按列表 float 三 Angular 形图片

ruby - 如何在 linux (ubuntu) 上更新 ruby​​?

ruby - compass 不适用于 Ubuntu 12.04

html - 使用 Bootstrap 水平扩展父 div "row-fluid"以适应其 float 的子元素

javascript - Jquery .css() 不起作用(可能是由其他原因引起的)

html - 如何将调整窗口大小的表行堆叠到一列中?

带有变量的 Bash shell 脚本 rsync