gpt4 book ai didi

javascript - 为什么 margin-top 使用百分比在 IE7 中不起作用?

转载 作者:行者123 更新时间:2023-11-28 14:29:19 25 4
gpt4 key购买 nike

IE7 好像不理解 top: 106%:

.flex-caption {
width: 76%;
margin-left: 170px;
position: absolute;
left: 0;
right: 0;
top: 106%;
color: #b8b8b8;
font-size: 14px;
line-height: 48px;
}

http://www.juxt2.com/test/skeleton/index.html

我有什么样的选择?

我正在做一个响应式设计,所以我不能使用 px

我也对只能在 IE7 中运行的 JavaScript/jQuery 修复持开放态度。

最佳答案

尝试在其旁边添加 !important。喜欢 :- margin-top !important;

关于javascript - 为什么 margin-top 使用百分比在 IE7 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7551302/

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