html - dt 标签在 IE 7 中相互 float

标签 html css internet-explorer-7

我在 IE 7 的页面上有 dt 标签 float 在另一个标签周围,有谁知道如何解决这个问题-

这是屏幕截图:Screen of error in IE 7

这是一个带有一些示例代码的 fiddle :fiddle , 我必须补充一点,这只是常见问题代码的一部分,而不是完整的。

最佳答案

您好,现在您可以像这样定义您的 dd 显示 block

dd{
display:block;
} 

现场演示 http://jsfiddle.net/Trcbc/1/


已更新

#faq dt { 
display:inline-block;  //remove this
display: block;  // add this 
*display: inline;   //remove this 
*zoom: 1; //remove this
 }

现场演示 http://jsfiddle.net/S7mb9/3/

关于html - dt 标签在 IE 7 中相互 float ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11500635/

相关文章:

jquery 函数在 IE 中不起作用

javascript - 嵌套的 Bootstrap 折叠 onclick 事件

html - flex 盒和 :nth-child are not being rendered properly

twitter-bootstrap - :before pseudo-element when there is one class but NOT another class 的 CSS 选择器

javascript - JS 在带边距的 Canvas 上绘制时使用错误的坐标

html - 我怎样才能让这个按钮在 IE7 中正确排列?

javascript - 如何在java的JEditorPane中添加JavaScript?

javascript - 使用请求动画帧绘制超出最大调用堆栈?

javascript - 页面不会在 Internet Explorer 中居中

html - DIV inside DIV - IE7 中的新行