html - 内部容器在 IE11 上浮出父级顶部

标签 html css

我有以下标记:

<div class="bottombar"> 
    <div class="outercontainer">
        <div class="container">
            <div class="devider">
                <p class="toptitle">dis-rupt-ifi</p>
                <p class="pheader-sub">disrpt/<br /><em>verb</em></p>
            </div>
            <div class="pheader">   
                We solve problems using design and technology.<br> we help and businesses consume data.<br> We use data design to drive your bottom line.
            </div>
        </div>
    </div>

</div>

和 CSS:

.bottombar{
    background-color: #475A54;
    padding: 0px 0 100px 0;
}

.outercontainer {
    display: flex;
    margin: 0 auto;
}

.container {
    margin: 0 auto;
}


.devider{
    float: left;
    border-right: 2px solid #FFF;
    padding-right: 90px;
}

.pheader{
    text-transform: none !important;
    text-align: left !important;
    letter-spacing: 0 !important;
    padding-left: 400px;
    line-height: 1.8;
}


@media screen and (max-width: 980px){
    .container {
        margin-left: 50px;
    }
    .devider{
        float:none;
        border-right: none;
    }
    .pheader{
        padding-left: 0;
        font-size: 32px;
    }
}

@media screen and (max-width: 736px){
    .pheader{
        padding-left: 0;
        font-size: 16px;
    }
}

这是在 Chrome 中呈现的:

enter image description here

在 IE11 中是这样的:

enter image description here

而且我终其一生都无法让它在 IE 中正常工作。有什么提示或指示吗?谢谢:)

PS - 我知道这不是完成此布局的最佳方式,这只是我需要在客户站点上解决的一个快速问题。所以吐口水和胶带!

最佳答案

我认为这是由于IE11中不支持display:flex。参见 caniuse.com

关于html - 内部容器在 IE11 上浮出父级顶部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41584211/

相关文章:

html - 缩放时 CSS 对象显示在其他对象下方

html - 在 child 之前停止 parent 背景??可以在CSS中完成吗?

CSS flex 盒 : Align last nth items towards the end

html - 多次刷新时出现的站点滚动条

html - 与不寻常的页面布局作斗争

javascript - 使用 `content` 属性作为 HTML 模板

html - 如何为 Onsen UI 页面设置背景颜色

jquery - 我想在点击输入时显示文本

javascript - 我需要更改 cookie 的 javascript 代码。我正在保存输入文本,但我需要保存 div 文本而不是输入文本

html - 使用 bootstrap、css 和 angularjs 控制图像大小