我正在从模板构建一个网站,我将页面顶部的边框更改为 div 上的边框,这样我就可以包含一些链接......一切都很好,但是当我突然检查 IE 时,整个页面都与左边。
我已经完成了更改,包括从我最初开始使用的模板中恢复 CSS……还没有修复它。我完全糊涂了,我已经逐行通过了这个并且无法弄清楚。
页面可见http://test.crucialsolutions.net/
谢谢!!
我正在从模板构建一个网站,我将页面顶部的边框更改为 div 上的边框,这样我就可以包含一些链接......一切都很好,但是当我突然检查 IE 时,整个页面都与左边。
我已经完成了更改,包括从我最初开始使用的模板中恢复 CSS……还没有修复它。我完全糊涂了,我已经逐行通过了这个并且无法弄清楚。
页面可见http://test.crucialsolutions.net/
谢谢!!
Using a DocType should fix this issue...
<!DOCTYPE html>
and in your body and the class main
you need to edit the margin like the following:
margin: 0 auto;
You don't have a width in class: main
. So add
width: 100%; /* according to your width size like width: 960px; */
用这个 css = style="width:1000px;margin:0px auto" 使用外部 div
<div style="width: 1000px; margin: 0px auto;">
<!--your code here-->
</div>
你在“标题类”上没有宽度属性,你必须给出:100% with float left .. 然后是内部 div .. “header_resize” 和其他类似的效果很好