2010-12-15 95 views
-1

我的网站一直很好,直到最近才正确对齐。只是有时候我整合了thickbox onload。从那以后,这个特定页面的排列已经不合时宜。请帮助我。网站对齐问题

请通过link供您参考

其他页面都很好,但主页被扭曲。请指教。

+0

“哎呀!谷歌浏览器无法连接到school.roboshaala.com” 你知道为什么吗?你可以向我们展示一些截图吗? :) – stecb 2010-12-15 14:57:30

+0

看起来对我好。你清除了你的缓存吗? – 2010-12-15 15:03:58

+0

查看d链接nowits ..工作.. – Sushil 2010-12-15 15:04:35

回答

0

从我在哪里看起来不错。 但在FF中,页面未居中。这是问题吗? 地址:

#Table_01 { margin: 0 auto} 

你做IE POSS “alerrt” 拼写错误得到一个脚本错误?

<script type="text/javascript"> 

function my_code(){ 
alerrt(" 
0

在你的CSS文件替换该代码

#main { 
background-image: url("images/orange2.jpg"); 
margin: 0 auto; 
width: 900px; // replace with your width 
} 
2

你把ThickBox的CSS后你的。在thcickbox CSS

第一行:

*{padding: 0; margin: 0;} 

怎么你#main DIV居中:

#main { background-color:; background-image: url('images/orange2.jpg') 
    margin-right: auto; 
    margin-left: auto; 
} 
body {background-color:;background-image: url('images/orange-20.jpg')} 
*{border: 0;margin-top: 0px;margin-bottom: 0px;} 

margin: 0 auto方法,因为ThickBox的CSS的取消。

2解决方案:

  1. 删除ThickBox的CSS
  2. 一号线把你的CSS后和尝试。

正如@livetolearn所说,你用中心的方法比较好,用width

另一点,你的CSS是高度可优化的。 例如,

background-color:; background-image: url('images/orange2.jpg') 

=

background:url('images/orange2.jpg') 
0

这些系在thickbox.css和它们没有适当地覆盖。这可能是原因

* { 
    margin-top: 0; 
    margin-left: 0; 
}