肯定是常见问题 - FF和MSIE [英] Surely a FAQ - FF and MSIE

查看:73
本文介绍了肯定是常见问题 - FF和MSIE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试创建一个适用于FF和MSIE的样式表。我昨天在谷歌上搜索了一些提示(如使用#margin-left

或_margin-left for MSIE)但似乎这些已经过时,因为他们也会影响FF。


这必须是常见问题解答(任何人都有地址吗?)但我怎么写呢

margin-top:-40px;

margin-left:170px;

所以FF实际上使用两个方向,而MSIE忽略了边距左边

指令?如上所述


margin-top:-40px;

margin-left:170px;

#margin-left:0px;

_margin-left:0px;


影响FF。


-

通过NewsDemon.com发布 - 高级未经审查的新闻组服务

------->>>>>> http://www.NewsDemon.com<< ;<<<< ------

无限制访问,匿名帐户,未经审查的宽带访问

We are trying to create a stylesheet that works both for FF and MSIE. I''ve
been googling a bit yesterday and found some hints (like using #margin-left
or _margin-left for MSIE) but it seems these are outdated, as they also
affect FF.

This must be a FAQ (anyone with the address to it?) but how do I write
margin-top: -40px;
margin-left: 170px;
so FF actually uses both directions while MSIE ignores the margin-left
instruction? As above

margin-top: -40px;
margin-left: 170px;
#margin-left: 0px;
_margin-left: 0px;

Does affect FF.

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

推荐答案

Martin写道:
Martin wrote:

我们正在尝试创建一个既适用于FF又适用于MSIE的样式表。我昨天在谷歌上搜索了一些提示(如使用#margin-left

或_margin-left for MSIE)但似乎这些已经过时,因为他们也会影响FF。


这必须是常见问题解答(任何人都有地址吗?)但我怎么写呢

margin-top:-40px;

margin-left:170px;

所以FF实际上使用两个方向,而MSIE忽略了边距左边

指令?如上所述


margin-top:-40px;

margin-left:170px;

#margin-left:0px;

_margin-left:0px;


影响FF。
We are trying to create a stylesheet that works both for FF and MSIE. I''ve
been googling a bit yesterday and found some hints (like using #margin-left
or _margin-left for MSIE) but it seems these are outdated, as they also
affect FF.

This must be a FAQ (anyone with the address to it?) but how do I write
margin-top: -40px;
margin-left: 170px;
so FF actually uses both directions while MSIE ignores the margin-left
instruction? As above

margin-top: -40px;
margin-left: 170px;
#margin-left: 0px;
_margin-left: 0px;

Does affect FF.



Google forConditional Comments。

Google for "Conditional Comments".


CA Upsdel​​l写道:
C A Upsdell wrote:

Google forConditional Comments"
Google for "Conditional Comments"



好​​的,所以如果我使用那些IE会忽略页面上的其他语句?从我现在浏览的几页中可以看出,这不是完全清楚的。


<!?[if IE 6]>

< link href =?.. / ie6.css?相对=?样式? ???。 />

<![endif]?>

< link href =?../ ff.css?相对=?样式? ???。 />


IE将忽略ff.css。我想是这样,但有人可以确认吗?


-

发表于NewsDemon.com - 高级未经审查的新闻组服务

- ------>>>>>> http://www.NewsDemon.com<<<<<< ------

无限制访问,匿名帐户,未经审查的宽带访问

OK, so if I use those IE will ignore other statements on the page? It''s not
entirely clear from the few pages I browsed just now that in

<!?[if IE 6]>
<link href=?../ie6.css? rel=?stylesheet? ???. />
<![endif]?>
<link href=?../ff.css? rel=?stylesheet? ???. />

IE will ignore the ff.css. I suppose so, but can anyone confirm?

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access


文章< 48 ******************* ****@news.newsdemon.com>,

Martin< sh ******** @ gmail.comwrote:
In article <48***********************@news.newsdemon.com>,
Martin <sh********@gmail.comwrote:

CA Upsdel​​l写道:
C A Upsdell wrote:

Google forConditional Comments"
Google for "Conditional Comments"



好​​的,所以如果我使用那些IE会忽略页面上的其他语句?从我现在浏览的几页中可以看出,这不是完全清楚的。


<!?[if IE 6]>

< link href =?.. / ie6.css?相对=?样式? ???。 />

<![endif]?>

< link href =?../ ff.css?相对=?样式? ???。 />


IE将忽略ff.css。我想是这样,但任何人都可以证实吗?


OK, so if I use those IE will ignore other statements on the page? It''s not
entirely clear from the few pages I browsed just now that in

<!?[if IE 6]>
<link href=?../ie6.css? rel=?stylesheet? ???. />
<![endif]?>
<link href=?../ff.css? rel=?stylesheet? ???. />

IE will ignore the ff.css. I suppose so, but can anyone confirm?



IE不会忽略你的其他样式表,这个想法只是掩盖了IE6'眼睛的
指令。因此,如果你确保IE6表格的链接低于所有浏览器的链接,那么

的任何指令都会在较低的指令中不同于较高的指令。优先。

但这并不总是一件简单的事情,它取决于IE

指令真正的覆盖。


这是一个非常简单的例子,如果你坚持这样的事情,你将会好起来:


forAll.css有ul.pics {margin-左:14px;}


forIE6Only.css有ul.pics {margin-left:8px;}


IE6将获得8px保证金。


当然,其他浏览器看不到8px指令。


-

dorayme

IE will not ignore your other stylesheet, the idea is to overide
instructions for IE6''s eyes only. Thus if you make sure that the link to
the IE6 sheet is below the one for all browsers, any instructions that
are different in the lower one than the higher one will take precedence.
But this is not always just a simple matter, it depends on the IE
instruction being genuinely an override.

Here is a very simple example and if you stick to such things you will
be ok:

forAll.css has ul.pics {margin-left: 14px;}

forIE6Only.css has ul.pics {margin-left: 8px;}

IE6 will get 8px for this margin.

And, of course, the other browsers do not see the 8px instruction.

--
dorayme


这篇关于肯定是常见问题 - FF和MSIE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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