Firefox 3中的CSS 3col布局显示问题 [英] CSS 3col layout display problems in Firefox

查看:48
本文介绍了Firefox 3中的CSS 3col布局显示问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法弄清楚为什么我试图创建的布局在IE6以外的浏览器中无法正常显示。除非我完全删除了我的contentBody div,否则我的页面正文似乎与顶部导航不对齐。此外,我的内容区域,如果leftnav恰好比身体内容更长,白色背景将不会扩展到我左侧导航的高度。这是我目前最大的两个问题,所以任何帮助都会受到高度赞赏。


Page - http://www.judiciary.state.nj.us/lay...st/index7.html

CSS - http://www.judiciary.state。 nj.us/layout_test/style7.css

I can''t seem to figure out why the layout I am trying to create is not displaying properly in browsers other than IE6. The body of my page does not seem to line up against the top navigation unless I completely remove my contentBody div. Also my content area, the white background wont expand to the height of my left navigation if the leftnav happens to be longer than the content in the body. Those are my two biggest problems at the moment so any help would be much appreciated.

Page - http://www.judiciary.state.nj.us/lay...st/index7.html
CSS - http://www.judiciary.state.nj.us/layout_test/style7.css

推荐答案

更正76个标记验证错误。
Tidy Online 有助于纠正怪诞的HTML,并将为您纠正大多数错误。手动更正剩余的错误。使用w3c标记验证服务确认文件有效,将有效文件上传到您的服务器,并通知论坛。谢谢。
Correct the 76 markup validation errors.
Tidy Online is helpful in correcting grotesque HTML, and will correct most of the errors for you. Correct the remaining errors manually. Confirm the file is valid with the w3c Markup Validation Service, upload the valid file to your server, and notify the forum of same. Thanks.


问题:您使用IE6作为初始测试吗?如果是这样,你正在测试这个星球上最糟糕的浏览器。始终使用现代浏览器确保正确编写标记。这意味着FF,Opera或Safari。然后检查IE以查看是否将其搞砸。
Question: are you using IE6 as your initial test? If so, you are testing against the worst browser on the planet. Always use a modern browser to make sure your markup is written correctly. That means FF, Opera or Safari. Then check in IE to see if it screws it up.


这是一个我以前见过的有用网站。感谢那。我清理了通过HTML Tidy运行时发现的所有错误,并在通过w3c标记验证服务运行后恢复了它。


IE6是唯一可用的浏览器直到最近。我现在有一个firefox的副本,我正在使用它来尝试解决我遇到的所有显示问题。


我接受了你的建议并清理了我的代码但仍然可以似乎没弄清楚为什么身体不会与头部对齐,身体的白色背景在长度不会延伸到leftnav的长度。


我'已经重新上传了清理过的css和html页面。
That was a helpful site I havn''t seen before. Thanks for that. I cleaned up all of the errors found when I ran it through HTML Tidy and it came back clean after running it through the w3c Markup Validation Service.

IE6 was the only browser availible until recently. I now have a copy of firefox and am working with that to try and address all of the display issues I am having.

I went with your advice and cleaned up my code but still can''t seem to figure out why the body wont align up against the header and the white background in the body wont extend to the length of the leftnav when that is longer.

I''ve reuploaded both the css and html page cleaned up.


这篇关于Firefox 3中的CSS 3col布局显示问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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