如何在IE8中隐藏我的自定义css溢出? [英] How do I hide my custom css overflow in IE8?

查看:415
本文介绍了如何在IE8中隐藏我的自定义css溢出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个使用纯CSS的脚本来切换图像,图像标题和文本。当我在IE8运行这个我可以一次所有的元素。这个脚本是相当广泛的,为了方便我把这个 JSFiddle 。我需要隐藏 cascade-overlay-content ,并尝试使用 overflow:hidden; 因为我仍然能够看到所有的元素后添加它无处不在。

I have made a script that uses pure css to toggle image, image caption and text. When I run this in IE8 I can all of the elements at once. The scripting for this is quite extensive so out of convenience I have made this JSFiddle. I need to hide the cascade-overlay-content and have tried to use overflow:hidden; and adding it changed nothing as I am still able to see all elements after adding it everywhere.

推荐答案

尝试添加 {position:relative; } 添加到父元素。有时它有助于旧的IE版本,特别是IE7。此外,确保父项具有 {overflow:hidden; }

Try to add { position: relative; } to the parent element. Sometimes it helps in old IE versions, especially IE7. Besides, make sure the parent has { overflow: hidden; }.

这篇关于如何在IE8中隐藏我的自定义css溢出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆