CSS:正在重置容器高度。 [英] CSS: Container height being reset.

查看:71
本文介绍了CSS:正在重置容器高度。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我一直在重新设计一个网站。这是一个由其他人开发的网站,CSS已经构建为适合他们提供的CMS。


这个重新设计几乎完成 - 而且相当简单。虽然有一个方面的麻烦。网站上的#container设置为100%高度,但在FF中它将自身重置为551px!


有问题的网站是 www.vardyfoundation.com 如果你在IE7中加载它并查看项目 - >国际页面您将看到中央容器一直向下运行。


在此中央容器内是主要内容持有者 - #body_page_column_a在FF中超过#container - 看一看


然后,如果您在Windows上加载Opera或Safari的网站,结果甚至更奇怪。


我今天花了很大一部分时间在这个问题上拔头发,真的很喜欢它的一些帮助。我已经发布了上面提到的2个CSS引用,如果您需要更多代码,请在我首选的浏览器中给我一个喊叫或使用您首选的Web开发人员功能。

Hi,

I have been working on a redesign of a site. this is a site that was developed by someone else and the CSS has been built to fit with the CMS that they supplied.

This redesign is nearly complete - and is fairly simple. there is one area of trouble though. the #container on the site is set to height 100% but, in FF it is resetting itself to 551px!

The site in question is www.vardyfoundation.com and if you load this in IE7 and look at the Projects->International Page you will see that the central container runs all the way down.

Within this central container is a main content holder - #body_page_column_a which in FF overshoots the #container - take a look .

Then if you load the site in Opera or Safari on Windows the results are even weirder.

I have spent a large part of today pulling my hair out over this issue and would really love some help with it. I have posted the 2 CSS references I made above, if you need more code either give me a shout or use your preferred web developer features in your preferred browser.

展开 | 选择 | Wrap | 行号

推荐答案

考虑到doctype并且有2340个标记验证错误,它在任何浏览器中都显示在屏幕上。
Considering the doctype and that there are 2340 markup validation errors it is a wonder it shows up on the screen in any browser.



考虑到doctype并且有2340个标记验证错误,这是一个奇迹在任何浏览器中都可以在屏幕上显示。
Considering the doctype and that there are 2340 markup validation errors it is a wonder it shows up on the screen in any browser.



我知道所有错误,但是,我没有能力更改它们,因为代码不是由我编写的,而是由CMS生成的。


就个人而言,我严格遵守标准,并在网站开发中看到自己的价值。那说不遵守标准不应该阻止一个网站显示(只是正确 - 因此,如果你调查它有很多的捏造 - 不是我在第一次写的) - 他们不是与编译错误相同。


除了这个关于标准的评论之外,您还有其他任何有用的建议吗?


干杯

nathj

I am aware of all the errors, however, I do not have the capability to change them as the code was not written by me and is generated by a CMS.

Personally I adhere strictly to standards and see their worth in web development. That said failing to comply with standards shouldn''t prevent a site from displaying at all (just correctly - hence there are lots of fudges if you look into it - not written by me in the first instance) - they''re not the same thing as compile errors.

Other than this comment on standards do you have any other helpful advice?

Cheers
nathj



除了这个关于标准的评论之外,您还有其他任何有用的建议吗?

nathj
Other than this comment on standards do you have any other helpful advice?
nathj



不是。尝试:

Not really. Try:

展开 | 选择 | Wrap | 行号


这篇关于CSS:正在重置容器高度。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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