简体   繁体   English

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

[英]Why doesn't margin-top using percent work in IE7?

IE7 doesn't seem to understand top: 106% : 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 http://www.juxt2.com/test/skeleton/index.html

What kind of alternatives do I have?我有什么样的选择?

I'm making a responsive design so I cannot use px .我正在做一个响应式设计,所以我不能使用px

I'm also open to a JavaScript/jQuery fix that would run in only IE7.我也愿意接受只能在 IE7 中运行的 JavaScript/jQuery 修复程序。

Trying adding !important next to it.尝试在它旁边添加 !important 。 Like :- margin-top !important;喜欢 :- margin-top !important;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM