简体   繁体   English

ie7 css 规则在 ie 开发人员工具中有效,但在代码中无效。

[英]ie7 css rules works in ie developer tool but not in the code.

div disappears in ie7 on position absolute, but when I use ie developer tool and assign any css rules like zoom:1; div 在 position 上绝对消失在 ie7 中,但是当我使用 ie 开发人员工具并分配任何 css 规则时,如 zoom:1; it works, and when I actually put that in code, it does not work at all.它有效,当我实际将其放入代码中时,它根本不起作用。

chances are its just a compatibility issue with IE, try the following很可能它只是与 IE 的兼容性问题,请尝试以下操作

create a CSS page for controlling the positions of your DIV tags, give the DIV tag an ID and a CLASS创建一个 CSS 页面来控制你的 DIV 标签的位置,给 DIV 标签一个 ID 和一个 CLASS

Then call the ID by doing the following in your CSS page然后通过在您的 CSS 页面中执行以下操作来调用 ID

#ID
{
   //Put your styles here
}

http://www.w3schools.com/css/default.asp http://www.w3schools.com/css/default.asp

This issue was fixed by placing empty tag right underneath the div that is absolutely positioned.通过在绝对定位的 div 正下方放置空标签来解决此问题。

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

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