【发布时间】:2010-03-25 21:51:07
【问题描述】:
你好,你猜怎么着,我有一个 IE 定位问题!这是8,所以上帝知道其他版本发生了什么(稍后检查)
两个盒子都叫同一个类,为什么IE这么难?
它的外观如下:
它的外观是这样的:
CSS:(为了便于阅读,去掉了 cmets)
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"> </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>
【问题讨论】:
-
您的图片丢失了吗?
-
Holdon,而我使用的其他图片托管服务并不糟糕,谢谢 Flickr。
-
flickr 不是图片托管服务,您提供的链接有误。改用farm5.static.flickr.com/4032/4460052324_32368ecb0a.jpgfarm5.static.flickr.com/4013/4460052402_6b580981b7.jpg
-
图片已更改,包括文档类型。谢谢。
-
“CSS:(为了便于阅读,去掉了 cmets)”让我笑了。
标签: html css internet-explorer-8 positioning