IE从我的页面中取出了猪的早餐!有什么想法吗? [英] IE makes a pig's breakfast out of my page!! Any ideas why?
问题描述
您好,
不希望得到明显的IE是垃圾响应,可以
有人告诉我为什么IE会让下面链接的页面变得如此混乱?
HTML和CSS验证,Firefox和Opera显示它精细。 IE
没有;-)
问题似乎是#pagebody div的宽度。如果我将它设置为绝对值(以像素或百分比表示),那么IE显示它很好。什么
我真正想要的是允许div扩展以填充
浏览器的宽度,但是使用max-width来防止它变得太宽。 />
通过这样做我解决了这个问题...
#pagebody {
宽度:90%; < br $>
}
div [id =" pagebody"] {
宽度:99%!重要;
max -width:1100px;
}
....但我真的不喜欢依赖于那种东西而且会
更愿意看看是否有正确的方法。
TIA提供任何帮助和建议。
http://www.kidsinaction.org.uk/iebarf.html
-
Alan Silver
(此行下面添加的任何内容都与我无关)
Hello,
Without wishing to get the obvious "IE is rubbish" response, could
anyone tell me why IE makes such a mess of the page linked below?
The HTML and CSS validate, and Firefox and Opera display it fine. IE
doesn''t ;-)
The problem seems to be the width of the #pagebody div. If I set it to
an absolute value (in pixels or percentage), then IE shows it fine. What
I really want is to allow the div to expand to fill the width of the
browser, but use max-width to keep it from getting too wide.
I got around the problem by doing this...
#pagebody {
width: 90%;
}
div[id="pagebody"] {
width: 99% !important;
max-width: 1100px;
}
.... but I don''t really like relying on the sort of thing and would
prefer to see if there is a way of doing it properly.
TIA for any help and advice.
http://www.kidsinaction.org.uk/iebarf.html
--
Alan Silver
(anything added below this line is nothing to do with me)
推荐答案
Alan Silver写道:
Alan Silver wrote:
不希望得到显而易见的IE是垃圾回复,有没有人能告诉我为什么IE会让下面链接的页面变得如此混乱?
HTML和CSS验证,Firefox和Opera显示它很好。 IE
没有; - )
Without wishing to get the obvious "IE is rubbish" response, could
anyone tell me why IE makes such a mess of the page linked below?
The HTML and CSS validate, and Firefox and Opera display it fine. IE
doesn''t ;-)
IE不明白位置:绝对(或固定?)
你为什么需要那些?
-
-bts
-警告:我为草坪鹿刹车
IE doesn''t understand position: absolute (or fixed?)
Why do you need those?
--
-bts
-Warning: I brake for lawn deer
在文章< O2 ******************** @ bgtnsc04-news.ops.worldnet.att.net>中,
Beauregard T. Shagnasty< a。********* @ example.invalid>写道
In article <O2********************@bgtnsc04-news.ops.worldnet.att.net>,
Beauregard T. Shagnasty <a.*********@example.invalid> writes
Alan Silver写道:
Alan Silver wrote:
不希望得到明显的IE是垃圾回复,有没有人能告诉我为什么IE会让下面链接的页面变得如此混乱?
HTML和CSS验证,Firefox和Opera显示它很好。 IE
没有;-)
IE不理解位置:绝对(或固定?)
Without wishing to get the obvious "IE is rubbish" response, could
anyone tell me why IE makes such a mess of the page linked below?
The HTML and CSS validate, and Firefox and Opera display it fine. IE
doesn''t ;-)
IE doesn''t understand position: absolute (or fixed?)
你确定吗?我之前使用IE浏览器并没有这种问题。我知道它不明白固定,但我绝对肯定它
理解绝对(尽管IE了解任何CSS)。
为什么你需要那些?
Are you sure? I''ve used these before with IE and not had this sort of
problem. I know it doesn''t understand fixed, but I''m absolutely sure it
understands absolute (as much as IE understands any CSS).
Why do you need those?
因为我希望标头显示在HTML内容的下方,但是
我希望它显示在顶部的页面。有没有更好的方式
这样做?
Ta ra
-
Alan Silver
(此行下面添加的任何内容都与我无关)
Because I want the masthead to appear below the content in the HTML, but
I want it to be displayed at the top of the page. Is there a better way
of doing this?
Ta ra
--
Alan Silver
(anything added below this line is nothing to do with me)
" Beauregard T. Shagnasty" <一个********* @ example.invalid>。写道:
"Beauregard T. Shagnasty" <a.*********@example.invalid> wrote:
IE不理解位置:绝对
Beeshit
(或修复?)
IE doesn''t understand position: absolute
Beeshit
(or fixed?)
IE =< 6不支持固定
-
Spartanicus
IE =< 6 doesn''t support fixed
--
Spartanicus
这篇关于IE从我的页面中取出了猪的早餐!有什么想法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!