开发者

Div shifted in IE Compatibility Mode

The Close to Play button on the advertisement box is shifted to the right for some reason on IE, when Compatibility mode is checked

Screenshot:

Div shifted in IE Compatibility Mode

http://piclair.com/data/2sm0j.jpg

URL: http://www.animefushigi.com/开发者_如何学运维sacred-seven-episode-6/4

Any ideas on how to fix?


I believe the problem may be the margin-left. But without that then it will look correct on other browsers.

Replace margin-left: 42% with margin: auto :)

This works because: http://www.w3.org/TR/CSS21/visudet.html#blockwidth

Block-level, non-replaced elements in normal flow

If both 'margin-left' and 'margin-right' are 'auto', their used values are equal. This horizontally centers the element with respect to the edges of the containing block.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜