首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >与CSS和IE8的问题,Box有一个溢出/重复的图像,仅在IE8!请帮帮我!

与CSS和IE8的问题,Box有一个溢出/重复的图像,仅在IE8!请帮帮我!
EN

Stack Overflow用户
提问于 2011-07-30 15:21:15
回答 1查看 1.9K关注 0票数 4

我有一个问题,几个div框显示一个溢出/重复的图像仅在Internet 8。它在Chrome和Firefox中运行良好。

链接到问题的图像:http://img220.imageshack.us/img220/2209/cssproblem.png

我真的不知道发生了什么..。请注意。在上面的图片中,我突出显示了与其div匹配的CSS类。下面是我使用的一些CSS & HTML代码:

HTML: (注意:我已经删除了框中的所有表单元素,因为我删除了它,问题仍然存在)

代码语言:javascript
复制
    <div class="introtext">
            <h1>Where to Search?</h1>
    </div><!--introtext -->

    <div class="qms_search_container">

        <div class="qms_search_header">
            <h2 class="qms_search">What to Search?</h2>
        </div><!--#end qms_search_header-->

        <div class="qms_search_box" align="left">


            <!--Form Stuff -->


        </div><!--#end qms_search_box-->

    </div><!--#end qms_search_container-->
</div><!--#end intro_banner-->

CSS:

代码语言:javascript
复制
    .introbanner { 
        background:url(../img/header_bg.gif) no-repeat bottom left #FFF; 
        width:700px; 
        height:230px; 
        padding:0 0 30px 0; 
        margin-bottom:10px; 
        overflow:hidden;
    }

    .introtext {
        width:194px; 
        float:left; 
        color:#FFF; 
        border-right:2px solid #FFF;
        height:206px; background:url(../img/intro_bg_left.gif) no-repeat top left #222935; 
        padding:12px;
    }

   .qms_search_container {
         float:right;
         width:456px;
         height:206px;
         padding:12px;
         overflow:hidden;
         background:url('../public/frontend/img/area_banner.jpg') no-repeat top left #ffffff;

   }

   .qms_search_header {
         width:430px;
         height:32px;
    }


    .qms_search_header h2 {
         margin:0 0 0 0; padding:0; color:#FFF; font-weight:100; font-size:20px; background-image:none; height:auto;
    }


     .qms_search_box {
          width:436px;
          height:164px;
          background:url(../img/qms_search_bg.png);
          padding:5px;
          overflow:hidden;
     }

我在这个问题上已经困了很久了,任何帮助都会很感激的!

谢谢丹尼。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-07-30 18:31:41

从您发布的Samvaughton.com/搜索链接中,您在IE中的问题区域周围有无效的HTML。如果您签入interpreted工具,<div class="introtext">似乎没有正确关闭,因此右边的内容被解释为在同一个div中。一旦修复了无效的HTML,请确保float:right qms_search_container出现在标记的左侧。我认为这应该可以解决您的<=IE8问题。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6884087

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档