html - 最小宽度在 IE 中不适用于卡住布局

标签 html css internet-explorer layout cross-browser

我想在网站模板中制作卡住布局,但我在 Internet Explorer 中遇到问题。

我是这样做的

<div id="NewsBlock">
    <div id="aboutUs">
        <h1></h1>
        <span class="OpenDayBanner"></span>
        <p>You can replace the paragraph above with some text describing your FAQ system. Here's an example: If you have questions about our web site, our products or our services, there’s a good chance you’ll find the answer here</p>
    </div>
</div>

对于 CSS 我是这样写的

div#NewsBlock{
    min-width: 1300px;   //this work for Firefox and chrome
    width:100%;
    overflow: hidden;
    height: 510px;
    background-image:url(../images/aboutstartupbg.png);
    background-repeat: repeat-x;
 }

使用宽度的最小宽度和百分比值使布局在 Firefox 和 Chrome 中卡住,但在 IE 中不起作用!有什么建议吗

最佳答案

您必须定义 min-width <p> 的属性(property)元素。

例子:

p.myClass {
    min-width: 420px;
   }

关于html - 最小宽度在 IE 中不适用于卡住布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9017544/

相关文章:

css - 在 Angular 2 Material 中将 md-tab-group body min height 更改为 0

css - CSS 宽度为 :100% gets shorter by increasing the IE zoom level 的 div

html - 不知道如何在 ngx-select-dropdown Angular 8 中设置选项

html - 透明背景和标志

javascript - 如何确保在执行 JS 之前应用自定义字体

html - 在菜单栏中为 Logo 创建切口

html - 我的 div 元素没有完全居中。 (他们看起来像但不是。)

css - 由于 CSS 问题导致移动站点重定向?

wpf - IE Edge 中的 XBAP 支持

html - 谁能推荐好的插件/api 等来为旧浏览器添加 HTML5/CSS3 支持?