ie8 div在页面加载后跳转 [英] ie8 div jumps after page load

查看:37
本文介绍了ie8 div在页面加载后跳转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下设置.1列,其中左浮动内部列和右浮动内部列.在Firefox上效果很好.IE做一些奇怪的事情.

I have the following setup. 1 column with a left floated inner column and a right floated inner column. Works very well on firefox. IE does something strange.

我在左栏中有一些部分,这些部分是使用JavaScript从weather.co.za加载的.右栏有一个广告加载并与jQuery一起显示.

I have parts in the left column that is loaded from weather.co.za with javascript. The right column has an ad loaded and displayed with jQuery.

在初始加载时,一切都很好.右栏将显示为应有的状态.左列或右列中的javascript一旦显示内容,右列就会向左跳10px".

On initial load everything is fine. Right column displays as it should. As soon as the javascript in the left column or right column displays the content the right column "jumps" 10px to the left.

我已经检查过了,似乎没有找到任何会导致跳转的代码.

I have checked and do not seem to find any code that would cause the jump.

我仍在学习中,请帮忙!

I am still learning as I go along, please help!

推荐答案

左裕度:10px.将其更改为padding-left:10px;现在正在工作!

Had margin-left:10px. changed that to padding-left:10px; now it is working!

这篇关于ie8 div在页面加载后跳转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆