简体   繁体   English

ie7中的CSS位置

[英]Css position in ie7

I have a file uploading site and my template works fine in every browser except ie7 我有一个文件上传站点,并且我的模板在除ie7之外的所有浏览器中都能正常工作

the google ads are not showing correctly in ie7, i tried applying css properties display: block and also tried with inline , specified width and height , specified position: relative , so what should i add to css to get it correctly positioned with floating element above it. google广告无法在ie7中正确显示,我尝试应用css属性display:块 ,还尝试使用inline ,指定的宽度高度 ,指定的位置:相对 ,因此我应该添加到css中以使其在上面的浮动元素中正确定位它。

alt text http://img2.pict.com/d2/ca/5f/1044221/0/1.png Image above is exactly what is accepted. 替代文字http://img2.pict.com/d2/ca/5f/1044221/0/1.png 上面的图片正是所接受的。

alt text http://img2.pict.com/36/7c/eb/1044222/0/2.png Ad stays where it is even if the above element decreases in size 替代文字http://img2.pict.com/36/7c/eb/1044222/0/2.png 广告会停留在原处,即使上述元素的尺寸减小

alt text http://img2.pict.com/5b/c7/94/1044230/0/3.png Again Ad stays where it is even if the above element increases in size 替代文字http://img2.pict.com/5b/c7/94/1044230/0/3.png 即使上述元素的尺寸增加,广告仍会停留在原处

Thank You 谢谢

将您的doctype设置为fixed,它应该进行排序。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">

There appears to be some absolute positioning going on on the iframe that google includes ( #google_ads_frame ). 在Google包含的iframe( #google_ads_frame )上似乎存在一些绝对的定位。 This is set to left: 0; 设置为左:0; and top: 0; 和顶部:0; though, so it shouldn't be displayed where you show us in the images. 但是,因此不应在图片中向我们展示的位置显示它。 I don't have a machine with IE7 installed right now, so I wasn't able to check properly, but I did go through the ad code, and that is the only place I found position: absolute . 我现在没有安装IE7的计算机,因此无法正确检查,但确实检查了广告代码,这是我找到的唯一position: absolute Not having used Google Ads before, I really don't know what kind of configurations you have available to play with, but I hope you find a solution :) 以前没有使用过Google Ads,我真的不知道您可以使用哪种配置,但是希望您能找到一种解决方案:)

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

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