html - 溢出 :visible not working in <th> IE 7, 8

标签 html css

我无法让 IE 将图像溢出到 .我将图像的上边距设置为负值并将溢出设置为可见:

#th_id img {
    margin-top: -25px;
}

#th_id {
    overflow: visible;
}

我还尝试将表格的 tr、tbody、表格和 div 容器设置为溢出:可见,但我仍然看到被截断的图像,而不是溢出在表格边框上的图像。 Firefox 似乎显示正确。

最佳答案

我让它在 IE 7 中运行。

try to add position:relative.
My code looks like this.

#th_id img {
    position: relative;
    margin-top: -25px;
}

#th_id {
    position: relative;
    overflow: visible;
}

hope it helps..

关于html - 溢出 :visible not working in <th> IE 7, 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15080107/

相关文章:

jquery - 是否可以在 ios7 的 HTML5 音频中自动播放或触发播放()状态?

javascript - 如何启用在对话框外部单击

html - Shopify,将文本更改为我在页面中写的内容

html - 2 列布局,内容宽度固定,背景宽度不限

css - 如何管理结构相同但颜色不同的多个css皮肤?

html - 背景边距不为 0

html - 最多 3 列和最少 2 列的 Flexbox 网格?等宽元素?

javascript - 如何从jquery对象获取html元素

html - 为什么我的其他复选框面板在这个奇怪的自定义复选框问题中丢失了?

javascript - Android中文本的自动垂直滚动