用于Firefox,Mozilla和ie的css [英] css for firefox, mozilla, and ie

查看:68
本文介绍了用于Firefox,Mozilla和ie的css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用firefox和mozilla,发现它们不如

,就css而言。例如,这是我的css


表#maintb {

border:0px solid;

width:677px;

身高:100%;

字体:xx-small Verdana,Arial,Helvetica,sans-serif;

}

table#maintb td {

padding-left:0px;

padding-top:0px;

broder:0x solid ;

}

table#maintb td #main {

text-align:center;

vertical-align :top;

padding-top:20px;

}


这里是我的HTML:


< table id =" main">

< tr>

< td> ...旁边菜单< td>

< td id = main">

< table>

...

我的内容表

...

< / table>

< / td>

< / tr>

< / table>


内容表不是放在mozilla单元格的中心

和firefox而在即我没关系。我需要不同的东西吗?

谢谢,


goor

Hi, I am trying firefox and mozilla and found they are not as good as
ie in terms of css. For example, here is my css

table#maintb{
border : 0px solid;
width : 677px;
height : 100%;
font : xx-small Verdana, Arial, Helvetica, sans-serif;
}

table#maintb td{
padding-left : 0px;
padding-top : 0px;
broder : 0x solid;
}
table#maintb td#main{
text-align: center;
vertical-align:top;
padding-top:20px;
}

here is my html:

<table id="main">
<tr>
<td>...side menus <td>
<td id = main">
<table>
...
my content table
...
</table>
</td>
</tr>
</table>

The content table is not placed in the center of the cell in mozilla
and firefox while in ie it is fine. Do I need something different?
Thanks,

goor

推荐答案

au******@yahoo.com 写道:
au******@yahoo.com wrote:
我正在尝试使用firefox和mozilla,发现它们不如
即css方面。


正确。他们不是好的作为IE。它们更好,更好。

例如,这是我的css

表#maintb {
border:0px solid;
width:677px ;


固定宽度设计?一个坏主意。

身高:100%;
字体:xx-small Verdana,Arial,Helvetica,sans-serif;
}


Verdana是一个非常糟糕的WWW字体选择。检查谷歌

的原因。

xx-small意味着3''步''小于浏览器默认值。在其他

的话中,对于真正小的法律脚注来说这是一个很好的尺寸,没有人实际上需要读取b $ b。对于其他任何东西都是一个可怕的大小。


IE5(如果你设法触发Quirks模式,则IE6)使得xx-small

比defaulrt小两步所以效果有所降低

有点 - 但是文字仍然比用户选择的b / b大小要小得多。

table#maintb td {
padding-left:0px;
padding-top:0px;
broder:0x solid;
}


布罗德? 0X?这是从你的样式表剪切和粘贴还是重新输入?

这只是为什么URL总是比代码更有用的一个原因如果你需要帮助



table#maintb td #main {
text-align:center;
vertical-align:top;
padding-top:20px;
}

这是我的HTML:

< table id =" main">
< tr>
< td> ...侧边菜单< ; td>
< td id = main">
< table>
...
我的内容表
...
< ; / table>
< / td>
< / tr>
< / table>


看起来你正在使用表格进行布局。停止。

内容表不是放在mozilla
和firefox中的单元格的中心,即它很好。我需要不同的东西吗?
Hi, I am trying firefox and mozilla and found they are not as good as
ie in terms of css.
Correct. They are not as "good" as IE. They are much, much better.
For example, here is my css

table#maintb{
border : 0px solid;
width : 677px;
Fixed width design? A bad idea.
height : 100%;
font : xx-small Verdana, Arial, Helvetica, sans-serif;
}
Verdana is a very poor choice of font for the WWW. Check Google for
the reasons why.

xx-small means 3 ''steps'' smaller than the browser default. In other
words it''s a good size for really small legalese footers that no one
actually needs to read. It''s a terrible size for anything else.

IE5 (and IE6 if you''ve managed to trigger Quirks mode) makes xx-small
only two steps smaller than the defaulrt so the effect is lessened
somewhat - but the text is still much smaller than the size the user
has chosen.
table#maintb td{
padding-left : 0px;
padding-top : 0px;
broder : 0x solid;
}
Broder? 0x? Is this cut and pasted from your stylesheet or retyped?
This is just one reason why a URL is always more useful than code if
you want help.
table#maintb td#main{
text-align: center;
vertical-align:top;
padding-top:20px;
}

here is my html:

<table id="main">
<tr>
<td>...side menus <td>
<td id = main">
<table>
...
my content table
...
</table>
</td>
</tr>
</table>
Looks like you''re using tables for layout. Stop.
The content table is not placed in the center of the cell in mozilla
and firefox while in ie it is fine. Do I need something different?




ID必须是唯一的。你有两个id =" main"。浏览器可能只是忽略了其中一个或两个。通过HTML验证器运行代码

会指出这个错误。


text-align不会影响块级元素,如表格,它只是

影响内联级别元素,如文本和图像。 IE得到这个

错了。


所以即使浏览器原谅你的第一个错误并将样式

应用到内部td #main表不应该居中。但是该表的所有

内容都应该居中(因为text-align

继承)。


Steve


-

我的理论给你起见,我的异端邪说你愤怒,

我从不回信,你不喜欢我的领带。 - 医生


Steve Pugh< st *** @ pugh.net> < http://steve.pugh.net/>



ID must be unique. You have two id="main". Browsers may simply ignore
one or both of them. Running your code through the HTML validator
would have pointed out this error.

text-align does not affect block level elements like tables, it only
affects inline level elements like text and images. IE gets this
wrong.

So even if the browser forgives your first error and applies the style
to the inner td#main the table should not be centered. But all the
contents of that table should be centered (because text-align
inherits).

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don''t like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>


2005年2月21日15:15:10 -0800, au ****** @ yahoo.com 写道:
On 21 Feb 2005 15:15:10 -0800, au******@yahoo.com wrote:
我正在尝试firefox和mozilla并找到它们不像在css方面那么好......


[...]

...内容表是没有放在mozilla和firefox中的
单元格的中心,即它很好。
我需要不同的东西吗?
Hi, I am trying firefox and mozilla and found they are not
as good as ie in terms of css...
[...]
...The content table is not placed in the center of the
cell in mozilla and firefox while in ie it is fine.
Do I need something different?




是;你需要一个完整的重启。


今天你能找到的最符合标准的浏览器是基于Gecko渲染引擎的
;这就是Mozilla,Firefox等...

Opera也属于同一类别。


MSIE基本上是网络上的一种害虫。


在''Doctype Sniffer'上开始你的Google搜索,并学习如何调整

甚至MSIE相对接近标准合规性。


从那里工作。


-

Rex



Yes; you need a complete restart.

The most standards compliant browsers you can find today are based on
the Gecko rendering engine; that is Mozilla, Firefox etc...
Opera also fits in the same category.

MSIE is basically a pest on the web.

Start your Google search on ''Doctype Sniffer'' and learn how to tweak
even MSIE relatively close to standards compliance.

Work from there.

--
Rex


嗯,你们都是很棒。


但我必须做对。我的问题有什么解决方案?


非常感谢你。


autogoor

Well, you guys are all great.

But I have to make it right. What is the solution for my problem?

Thank you very mcuh.

autogoor


这篇关于用于Firefox,Mozilla和ie的css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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