<跨度>在 IE8 上被忽略,而在 mozilla 上则不然

发布于 2024-09-03 16:47:36 字数 429 浏览 4 评论 0原文

我有这样的事情:

 <ul>
   <li>
      <div>
        <div style="display:inline">
          <a><span class="ui-icon ui-icon-circle-plus floatleft "></span></a>
        </div>
        <input   type="checkbox"> <label>good</label>
     </div>
  </li>
 </ul>

子弹在 IE8 上超出了跨度,我想让它停留在跨度之前,就像在 Mozilla 中一样,有人知道怎么做吗?

I have something like this:

 <ul>
   <li>
      <div>
        <div style="display:inline">
          <a><span class="ui-icon ui-icon-circle-plus floatleft "></span></a>
        </div>
        <input   type="checkbox"> <label>good</label>
     </div>
  </li>
 </ul>

the bullet goes above the span on IE8, I would like to make it stay before the span just like in Mozilla, anybody knows how ?

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

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

发布评论

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

评论(1

滴情不沾 2024-09-10 16:47:36

在我看来,好像你有一个

  • 内没有内联样式以及
    之外
    既然如此,我希望外部 div 被格式化为一个块,而不是与项目符号在同一行。我很惊讶其他浏览器确实将它放在同一行。
  • It looks to me as if you have a <div> without an inline style inside the <li> and outside the <div style='display:inline'>
    That being so, I would expect the outer div to be formatted as a block rather than being on the same line as the bullet. I'm rather surprised that those other browsers do put it on the same line.

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