0

嗨,你猜怎么着,我有一个 IE 定位问题!这是8,所以上帝知道其他版本发生了什么(稍后检查)

两个盒子都叫同一个类,为什么IE这么难?

这是它的外观:

对

下面是它的外观:

错误的

CSS:(为便于阅读删除了注释)

div .roundbigboxkunde {
    background-image:url(../../upload/EW_kunde_info.png);
    background-position:top center;
    padding:10px;
    padding-top:10px;
    padding-bottom:20px;
    width:560px;
    height:1%;
    border-width:1px;
    border-color:#dddddd;
    border-radius:10px;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    z-index:1;
    position:relative;
    overflow:hidden;


}

div .roundbigboxkundei {

    margin-top:10px;
    padding:10px;
    padding-top:10px;
    padding-bottom:10px;
    width:760px;
    height:1%;
    position:relative;
    overflow:hidden;

和 HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

    <div class="roundbigboxkunde"> 
    <div class="roundbigboxkundei"> 

<p id="nyk">&nbsp;</p> 
<div id="bg_box2"></div> 
<p class="required"> 

       <label for="billing_firstName"><span class="label">Fornavn:</span></label> 
       <fieldset class="error"><input name="billing_firstName" class="text" type="text" value="Kyle"/> 

    <div class="errorText hidden"></div> 
    </fieldset> 
</p> 

CONTENT CONTINUES

        </fieldset> 

这是页面

4

2 回答 2

0

鉴于您有一些内容看起来像是出现在其他内容中,如果我是您,我会首先仔细检查您的所有标签是否已关闭(即,您没有<div>缺少它的标签</div>)。

但是从你发布的内容很难判断。. . 如果页面托管在某个地方并且您可以链接到它,那将更容易调试。

于 2010-03-24T14:34:48.910 回答
0

我补充说:

<div class="clear"></div>

与CSS:

.clear
{
    clear: both;
    width: 100%;
    height: 0;
    overflow: hidden;
    float: none !important;
}

两个盒子之间。把它修好了:)

于 2010-03-25T13:51:07.750 回答