【问题标题】:IE , chrome browser issue - multiple div showing up as nested divIE , chrome 浏览器问题 - 多个 div 显示为嵌套 div
【发布时间】:2010-11-06 15:05:47
【问题描述】:

我有这个 html,它在 Firefox 中显示良好,但在 IE 和 chrome 中除外

<div id="snippets">
  <div class="snippet"></div>
  <div class="snippet"></div>
  <div class="snippet"></div>
  <multiple of these>
</div

每个具有 sn-p 类的 div 都显示为前一个的子级。 我有 .sn-p { clear:both }

我需要什么 css 魔法?

任何帮助表示赞赏

【问题讨论】:

  • 我希望你关闭最后一个 div。如果是,您使用脚本创建 html 代码还是简单的 html 代码?您还可以在 jsbin.com 上提供您的 css 甚至更好的实时示例吗?
  • @user 您的问题不清楚,如果您可以发布完整的代码,我们可以轻松解决该问题
  • @你应该清楚所有的dvs..
  • 如果可以的话,我可以把你指向caniafforditnow.com的现场直播
  • @user ,对不起,我说你不应该把所有的 div 都说清楚,让我看看你的网站

标签: css internet-explorer google-chrome cross-browser


【解决方案1】:

试试 .sn-p{float:left:width:100%}

【讨论】:

    【解决方案2】:

    这是一个不完整的结束标签 @Sotiris 你接近了,我给你功劳

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多