我有一个XHTML 1.0过渡的网页有以下主要表:背景图像获取互联网补齐Explorer中
<table>
<tr>
<!-- header -->
</tr>
<tr>
<td class="left"><!-- menu --></td>
<td class="content"><!-- content and header iamge --></td>
<td class="right"><!-- other stuff --></td>
</tr>
<tr>
<!-- footer -->
</tr>
</table>
的CSS是这样的:
#content {
width:100%;
vertical-align:top;
background-color:white;
/* desired padding of the content */
padding-right:10px;
padding-left:10px;
padding-bottom:10px;
background-image: url(bilder/pseudo-panorama3.jpg);
background-repeat:no-repeat;
background-position: center top;
padding-top:213px; /* height of the picture + the desired 10px padding to the content */
}
计划中的行为如下:
在Firefox 31中,页面笑WS达预期:
在Internet Explorer 11,有背景图像和小区边界之间的空间:
我能做些什么来消除这种空间?我已经试过background-clip
,但它没有奏效。
网页的URL是在这里:http://www.thrs-heidelberg.de/v2/htdoc/
谢谢。我试过了,但它并没有影响到这个空间。 – 2014-09-06 16:38:58
发布一个jsfiddle,这样我将能够更好地为您提供帮助 – Allan 2014-09-06 16:39:37
我刚更新了我的答案,查看了 – Allan 2014-09-06 16:45:47