css - 图像不会在 IE7 中正确地向右浮动

标签 css css-float internet-explorer-7

出于某种原因,此页面中(链接已删除)其中一个框中的图像在 IE7 上无法正确 float 到文本右侧。我一直在寻找 2 天,我不知道为什么会这样。有人可以帮忙吗?

最佳答案

Internet Explorer 需要为每个 float 元素定义宽度以进行计算。

.csc-textpic-imagewrap{
 width:120px;
}

关于css - 图像不会在 IE7 中正确地向右浮动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8181890/

相关文章:

css - 获取相对 div 容器的高度

javascript - jQuery 控制标签的边框颜色

jquery - next() 在 IE7 中没有获取带有 "display: none"的内部 UL

javascript - 使用 Jquery 显示控件的错误消息

javascript - 如何在 javascript 中测试 css 颜色

css - 将 div 移动到图像 CSS

html - IE7输入类型隐藏占用空间

css - Bootstrap + Font Awesome + IE7 = 带图标的按钮上没有标题

html - IE 7 float :right is creating a blank line above the float right div

css - 将鼠标悬停在一个 div 上会将另一个 div 推得太远