复杂的问题? [英] Complicated Question?

查看:117
本文介绍了复杂的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

奇怪的是,在搜索谷歌搜索网页时,我只能找到一些关于这个问题的文章。我想知道它是不是通常遇到的一个不是



如果需要的话,我想要有三个可以浮动的div。他们在另一个div里面是
。我在上面加了一个背景色。我将所有三个

浮动到左边。


IE工作正常,就像你期望的那样。但Firefox,虽然它渲染

其他一切相同,扩大了包含框并强制一个

水平滚动条。


我无法想象为什么。如果我移除浮动,滚动条会消失。

Oddly enough, in searching Google for web and ngs, I could find only a
handful of articles on this problem. I wonder if it''s one not
typically encountered?

I wanted to have three divs that could float, if need be. They are
inside another div. I put a background color on it. I float all three
inside it to the left.

IE works fine, just as you''d expect. But Firefox, while it renders
everything else the same, widens out the containing box and forces a
horizontal scrollbar.

I can''t imagine why. If I remove the float, the scrollbar goes away.

推荐答案

Mark Johnson< 10 ******* @ compuserve.com>写道:
Mark Johnson <10*******@compuserve.com> wrote:
奇怪的是,在搜索谷歌搜索网页时,我只能找到一些关于这个问题的文章。我想知道它是不是通常遇到的那个?

如果需要的话,我想要有三个可以漂浮的div。他们在另一个div里面。我在上面加了一个背景色。我将它们全部浮动到左边。

IE工作正常,就像你期望的那样。但Firefox,虽然它渲染了其他一切相同的东西,但是扩大了包含框并强制一个
水平滚动条。

我无法想象为什么。如果我移除浮动,滚动条会消失。
Oddly enough, in searching Google for web and ngs, I could find only a
handful of articles on this problem. I wonder if it''s one not
typically encountered?

I wanted to have three divs that could float, if need be. They are
inside another div. I put a background color on it. I float all three
inside it to the left.

IE works fine, just as you''d expect. But Firefox, while it renders
everything else the same, widens out the containing box and forces a
horizontal scrollbar.

I can''t imagine why. If I remove the float, the scrollbar goes away.




如果我可以回答我自己的问题,那可能只是因为

Firefox .8或.9中''quirks''和''strict''模式之间的区别。


我更喜欢怪癖,但可能会在Firefox中使用
严格。因为它是Firefox推出超宽的div,跨度,你有什么好的b $ b。 IE并不是那么糟糕。但是切换到严格导致IE中出现问题,



Quirks模式通常不包括DOCTYPE中的URL。如果使用XSLT

,则意味着不包括doctype-system参数。如果您确定包含URL / URI,那么通常浏览器会进入严格的

模式,这样可以完全改变样式表的呈现。


有一天,我可能会决定过渡4.01严格,而不是现在的
怪癖。但是重做所有这些风格的工作还有很多工作,所以我不会在Firefox中获得水平滚动条 -

浏览器几乎没有人使用过。这需要时间。这可能是值得的。



If I might answer my own question, it probably is due simply to the
difference between ''quirks'' and ''strict'' mode in Firefox .8 or .9.

I prefer quirks, but would probably be able to render in Firefox using
strict. As it is Firefox kicks out extra-wide divs, spans, what have
you. IE isn''t as bad. But switching to strict causes problems in IE,
as well.

Quirks mode is typically had by not including a URL in the DOCTYPE. If
using XSLT, that means including no "doctype-system" parameter. If you
do include the URL/URI then typically browsers kick into a strict
mode, which can completely change the rendering of your style sheets.

One day, I may decide to go transitional 4.01 strict, instead of
quirks as of now. But it''s a lot of work to rework all those style
sheets just so I won''t get a horizontal scroll bar in Firefox - which
browser hardly anyone uses. It''ll take time. It might be worth it.


在文章< cl ************************ ********@fe02.buzzardne ws.com>,
10 ******* @compuserve.com 说...
In article <cl********************************@fe02.buzzardne ws.com>,
10*******@compuserve.com says...
奇怪的是,在搜索谷歌搜索网页时,我只能找到一些关于这个问题的文章。我想知道它是不是通常遇到的那个?

如果需要的话,我想要有三个可以漂浮的div。他们在另一个div里面。我在上面加了一个背景色。我将它们全部浮动到左边。

IE工作正常,就像你期望的那样。但Firefox,虽然它渲染了其他一切相同的东西,但是扩大了包含框并强制一个
水平滚动条。

我无法想象为什么。如果我移除浮动,滚动条会消失。
Oddly enough, in searching Google for web and ngs, I could find only a
handful of articles on this problem. I wonder if it''s one not
typically encountered?

I wanted to have three divs that could float, if need be. They are
inside another div. I put a background color on it. I float all three
inside it to the left.

IE works fine, just as you''d expect. But Firefox, while it renders
everything else the same, widens out the containing box and forces a
horizontal scrollbar.

I can''t imagine why. If I remove the float, the scrollbar goes away.




URL?


-

Lauri Raittila< http://www.iki.fi/lr> < http://www.iki.fi/zwak/fonts>



URL?

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>


Lauri Raittila< la *** @ raittila.cjb.net>写道:
Lauri Raittila <la***@raittila.cjb.net> wrote:
在文章< cl ******************************* *@fe02.buzzardne ws.com>,
10******* @ compuserve.com说...
In article <cl********************************@fe02.buzzardne ws.com>,
10*******@compuserve.com says...
奇怪的是,在Google搜索网页和ngs时,我只能找到关于这个问题的少数几篇文章。我想知道它是不是通常遇到的那个?

如果需要的话,我想要有三个可以漂浮的div。他们在另一个div里面。我在上面加了一个背景色。我将它们全部浮动到左边。

IE工作正常,就像你期望的那样。但Firefox,虽然它渲染了其他一切相同的东西,但是扩大了包含框并强制一个
水平滚动条。

我无法想象为什么。如果我移除浮动,滚动条会消失。
Oddly enough, in searching Google for web and ngs, I could find only a
handful of articles on this problem. I wonder if it''s one not
typically encountered?

I wanted to have three divs that could float, if need be. They are
inside another div. I put a background color on it. I float all three
inside it to the left.

IE works fine, just as you''d expect. But Firefox, while it renders
everything else the same, widens out the containing box and forces a
horizontal scrollbar.

I can''t imagine why. If I remove the float, the scrollbar goes away.



URL?



URL?




严格模式和怪异模式之间的框模型差异。


坦率地说,我没有意识到严格模式不允许自定义

属性。我需要我自己选择的属性来确定

的功能。我实际上不能使用严格的模式。它似乎比它的价值更麻烦。唯一的优势是IE和

Firefox和NN,如果他们仍然保持这种状态,以及各种

版本更重要(MAC任何人?)都会以相同的方式显示页面

,并为javascript提供相同的DOM。但是我被告知

它甚至都不会那样工作。


话虽如此,我发现在Firefox中,例如,没有

从严格到怪癖的转换除了必须使用''px''

后缀来设置像素值之外。 IE表现不是很好。


你改变的方式,至少在IE 6中,只是使用一个带有

的doctype类型和网址的东西。可能只是一个

字母x在这两种情况下。但是使用第二个值可以让你进入

严格模式,以及2004年仍然出现的所有问题。而且,没有第二个DOCTYPE参数的
会让你陷入默认的怪癖br />
模式,你可以得到没有任何DOCTYPE线。



Box model differences between strict and quirks mode.

Frankly, I didn''t realize that strict mode will NOT allow custom
attributes. I require attributes of my own choosing for certain
functionality. I literally can''t use strict mode. And it seems to be
more trouble than it''s worth. The only advantage would be that IE and
Firefox, and NN if they''re still keeping that going, and various
versions more importantly (MAC anyone?) would all display the page the
same way, and have available the same DOM for javascript. But I''m told
it doesn''t even always work that way.

That being said, I find in Firefox, for example, no real difference in
switching from strict to quirks except that one MUST use the ''px''
suffix for setting pixel values. IE isn''t so well behaved.

The way you switch, at least in IE 6, is simply to use a doctype with
something for the type and something for the url. Could just be a
letter "x" in both cases. But using the second value kicks you into
strict mode, and all the problems that still presents in 2004. And
leaving off the second DOCTYPE argument keeps you in default quirks
mode, which you get without any DOCTYPE line at all.


这篇关于复杂的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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