简体   繁体   English

IE7中的CSS对齐问题

[英]CSS alignment problem in IE7

I've been putting together a drupal Website for a personal project (coffee geek Website about the Rancilio Miss Silvia) and the css is working great in Firefox and Safari but not in IE. 我一直在为个人项目整理一个drupal网站(关于Rancilio Silvia小姐的咖啡极客网站),而css在Firefox和Safari中工作得很好,但在IE中却没有。

In IE the alignment of the central section is totally screwed up and I can't seem to figure out what I'm missing. 在IE中,中心部分的对齐方式完全搞砸了,我似乎无法弄清所缺少的内容。

I'm working off of the Zen theme for drupal so there's a bunch of extra tags in there to make sure it's extra confusing. 我正在研究Drupal的Zen主题,所以那里有很多额外的标签,以确保它带来更多的混乱。

The site is: http://www.silviaschool.com 该站点是: http : //www.silviaschool.com

The relevant style sheet is: http://silviaschool.com/themes/zen/zen/layout-liquid.css 相关样式表为: http : //silviaschool.com/themes/zen/zen/layout-liquid.css

Thanks for any help you can offer :) 谢谢你的尽心帮助 :)

problem #1: 问题1:

body { width: 20%; }

That's being applied via the sidebar-left class. 这是通过sidebar-left类应用的。

problem #2: 问题2:

I'm not sure if you want a fixed-width layout or not. 我不确定是否要使用固定宽度的布局。 When I load up the page in Chrome, it appears to have fixed-width but your stylesheet applies width: 90% to #page . 当我在Chrome中加载页面时,它似乎具有固定宽度,但是您的样式表将width: 90%应用于#page If you desire fixed width, then you'll need to specify a fixed width on #page . 如果您需要固定宽度,则需要在#page上指定固定宽度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM