溢出自动不工作在IE [英] overflow auto not working in IE

查看:90
本文介绍了溢出自动不工作在IE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我已经阅读了一些q和a在这里关于这个问题,但没有一个似乎有帮助。我在网站上有一些其他页面,使用溢出自动调整大小的高度没有问题。

First off I have read a couple of q and a's on here about this issue but none of them seem to help. I have a couple other pages on the website that have no problems with resizing to height using overflow auto.

我注意到的事情是页面工作正常与一个div。不工作的页面有两个或更多的div,我也尝试过一个容器,但我仍然得到垂直和水平滚动条。

The thing I have noticed is the pages work fine with one div. The page that is not working has two or more div and also I have tried it with a container but I still get the vertical and horizontal scroll bars.

<div class="content">
    <div class="container">
        <div class="a">
            <div class="left">List Items</div>
            <div class="right">List Items</div>
        </div>
        <div class="b">
            This div is a FORM.
        </div>
    </div>
</div>

我可以给你们一个简单的错误,但我是新的, p>

I could be making a simple error to you guys but I am new so bare with me!

推荐答案

创建了一个仅IE样式表,并将.content更改为overflow:hidden。也采取了一些类的宽度使内容适合正确,因为它已经在其他浏览器。

made an IE only style sheet and changed the .content to overflow: hidden. also took the width off of a couple of classes to make the content fit correctly as it does already in other browsers.

这篇关于溢出自动不工作在IE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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