Li在IE6/7中带有浮动。它消失了?

发布于 2024-09-01 07:53:34 字数 413 浏览 3 评论 0原文

尝试在 IE 6/7 中测试此代码:

<html>
<head>
    <title>Title</title>
</head>

<body>
  <ul>
    <li style="float:left">huisashaiuhs iuhuiahsiuhsaiu</li>
  </ul>
</body>
</html>

LI 的圆圈在哪里?我已经在 UL 和 LI 中完成了所有类型的解决方法。什么都没有,什么都行不通。

你有什么想法吗? (顺便说一句,已经尝试过 hasLayout、padding-left、margin-left、display:inline 等)

Try test this code in IE 6/7:

<html>
<head>
    <title>Title</title>
</head>

<body>
  <ul>
    <li style="float:left">huisashaiuhs iuhuiahsiuhsaiu</li>
  </ul>
</body>
</html>

Where is the circle of LI? I already do ALL types of workaround, in UL and LI. Nothing, NOTHING works.

Do you have any idea? (BTW already tried hasLayout,padding-left,margin-left,display:inline, etc etc etc)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

怕倦 2024-09-08 07:53:34

查看此论坛文章:http:// www.highdots.com/forums/alt-html/float-li-bullets-ie7-277086.html

或者,我建议将

    放在 < code>

    向左浮动,并从

  • 中删除浮动样式。

例如

  <div style="float: left;">
    <ul>
      <li>huisashaiuhs iuhuiahsiuhsaiu</li>
    </ul>
  </div>

Check this forum article out: http://www.highdots.com/forums/alt-html/float-li-bullets-ie7-277086.html

Or else, I'd suggest putting the <ul> in a <div> that is floated left, and remove the float style from the <li>.

e.g.

  <div style="float: left;">
    <ul>
      <li>huisashaiuhs iuhuiahsiuhsaiu</li>
    </ul>
  </div>
只是一片海 2024-09-08 07:53:34

尝试添加文档类型以将页面踢入标准模式?

Try adding a doctype to kick the page into standards mode?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文