当我更改页面时,页面中间向右移动
问题描述:
我制作了一个带图片的网站,当我在图片页面上输入时...单击下一步,预览图片将图片浮动到右侧。在IE中运行良好,但在谷歌浏览器,Mozilla,Safari ......中间页面向右移动。 我试过在CSS中的变化,但没有想法。你可以帮我吗? 在此先感谢!当我更改页面时,页面中间向右移动
类 “内容” 我把报头和CSS代码
body {
/*background-color: none;
border-radius: 25px;
background-image:url('/images/gray_jean.png');*/
background: #ffffff;
color: #000000;
margin:0;
padding:0;
}
.content {
position:relative;
margin:0 auto;
margin-left: auto;
margin-right: auto;
text-align: center;
width:100%;
clear: both;
}
由于
答
替换当前的代码这一点,
.content {
margin:0 auto;
text-align: center;
width:100%;
}
答
卸下position:relative;
从.content
。
.content {
position:relative; // Remove this
}
并尝试,可能是?
+2
而且,请打给我? (忍不住) – 2013-03-03 16:21:23
+0
LoL。我不知道该说些什么。 – 2013-03-03 17:13:15
谢谢 - 我把你的线,但没有什么时,我添加HTML { overflow-y:scroll; }和正常。内容{0} {0} {0} {0} text-align:center; 宽度:100%; }它工作超级。非常感谢。 – Carl 2013-03-10 11:13:13