Mozilla -moz-inline-box替代品 [英] Mozilla -moz-inline-box alternative

查看:48
本文介绍了Mozilla -moz-inline-box替代品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两张桌子< spans我想要并排,好吧在IE浏览器但是在Mozilla

我需要使用display:-moz-inline-box;"这在Opera中不起作用

需要display:inline-block。


除了isMozBug之外还有其他方法可以解决这个噩梦变量

被触发是否正在使用Mozilla替代相应的

显示值?


非常感谢提前,


Aaron

解决方案



Aaron Gray写道:
< blockquote class =post_quotes>
我有两个表< spans我想并排,



我建议你从停止开始这样做。它不是有效的HTML,

因此它的呈现方式总是不可预测的。如果你想要一对并排的桌子,那么有一些有效的方法可以做到这一点

。假装< tablecan以某种方式呈现为内联,但是
不是吗。


>我有两张桌子in< spansI想要并排,


>

我建议你先停止这样做。它不是有效的HTML,

因此它的呈现方式总是不可预测的。如果你想要一对并排的桌子,那么有一些有效的方法可以做到这一点

。假装< tablecan以某种方式呈现内联,但是
不是吗。



是的我现在已经发现了这一点,但是如何在< divthen?中将两张桌子放在一边




我尝试过使用display:inline-block;风格但没有在哪里。


你能给我一些代码或者请给我一个例子。


非常感谢你的回复,


Aaron


" Aaron Gray" < a ******** @ gmail.comwrote:


>我在< spans>中有两个表



无效的HTML。


>我想要并排,好吧在IE中但在Mozilla中
我需要使用display:-moz-inline-box;这在Opera中无效,
需要display:inline-block。



两位都没有,因为我已经在comp.lang.javascript中向您解释过。


>除了被触发的isMozBug变量之外,还有其他方法可以解决这个噩梦吗?是否正在使用Mozilla代替相应的显示值?



这里是没有JS的comp.lang.javascript解决方案:


table {display:inline}

table {display:inline-table}

(请勿*将上述2条规则合并为一条规则,否则IE会绊倒)


请注意我在comp.lang.javascript中提到过的警告


-

Spartanicus


I have two tables in <spansI want side by side, okay in IE but in Mozilla
I need to use "display: -moz-inline-box;" this does not work in Opera which
requires "display: inline-block".

Is there any other way out of this nightmare other than a isMozBug variable
that gets triggered is Mozilla is being used that substitues the appropriate
display value ?

Many thanks in advance,

Aaron

解决方案


Aaron Gray wrote:

I have two tables in <spansI want side by side,

I''d suggest that you start by stopping doing that. It''s not valid HTML,
so how it gets rendered is always going to be unpredictable. If you
want a pair of tables side-by-side, then there are valid ways to do
this. Pretending that a <tablecan somehow be rendered inline though
isn''t it.


>I have two tables in <spansI want side by side,

>
I''d suggest that you start by stopping doing that. It''s not valid HTML,
so how it gets rendered is always going to be unpredictable. If you
want a pair of tables side-by-side, then there are valid ways to do
this. Pretending that a <tablecan somehow be rendered inline though
isn''t it.

Yes I have found out this now, but how do I go about putting two tables side
by side in a <divthen ?

I have tried using "display: inline-block;" style but got no where.

Could you give me some code or point me to an example please.

Many thanks for your reply,

Aaron


"Aaron Gray" <an********@gmail.comwrote:

>I have two tables in <spans>

Invalid HTML.

>I want side by side, okay in IE but in Mozilla
I need to use "display: -moz-inline-box;" this does not work in Opera which
requires "display: inline-block".

No on both counts as I already explained to you in comp.lang.javascript.

>Is there any other way out of this nightmare other than a isMozBug variable
that gets triggered is Mozilla is being used that substitues the appropriate
display value ?

Here is the comp.lang.javascript solution again without the JS:

table{display:inline}
table{display:inline-table}

(Do *not* combine the above 2 rules into one rule, or IE will trip up)

Note the caveats I already mentioned in comp.lang.javascript

--
Spartanicus


这篇关于Mozilla -moz-inline-box替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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