IE8中的虚构边际?

时间:2012-05-16 14:14:48

标签: html css internet-explorer-8

enter image description here

有没有人知道为什么图像没有对齐容器的右下角,而是有一些假想的边距会导致它与按钮重叠?

在IE8中只发生 ,在任何其他浏览器中查看该页面,它看起来很超级。

Live example for your inspection.

提前致谢:)

2 个答案:

答案 0 :(得分:2)

将第1616行的css更改为“text-align:right”应修复它。

.dealerLogo {
   text-align: right;
   position: absolute;
   bottom: 0;
   right: 0;
   cursor: pointer;
}

答案 1 :(得分:1)

我不知道为什么这种情况正在发生,我并没有尽力去发现。

要解决此问题,请在.vcard .dealerImages .dealerLogotext-align: center更改为text-align: right。这在其他浏览器中没有任何区别,但修复了IE8。

您还需要将z-index: 1添加到.vcard .dealerImages .dealerContact,以保持橙色按钮的最右边部分正常工作。

相关问题