gpt4 book ai didi

css - Div 在 IE 兼容模式下移动

转载 作者:太空宇宙 更新时间:2023-11-04 05:19:36 24 4
gpt4 key购买 nike

当选中兼容模式时,由于某些原因在 IE 上,广告框上的“关闭播放”按钮向右移动

截图:

enter image description here

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

网址:http://www.animefushigi.com/sacred-seven-episode-6/4

关于如何修复的任何想法?

最佳答案

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

margin-left: 42% 替换为 margin: auto :)

之所以有效,是因为: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.

关于css - Div 在 IE 兼容模式下移动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6976337/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com