IE和其他浏览器:与风格相关的问题 [英] IE and other browsers: style-related questions

查看:63
本文介绍了IE和其他浏览器:与风格相关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1。 CSS有五个通用字体系列说明符:serif,sans-serif,cursive,

fantasy,monospace。 IE允许用户选择默认的比例字体和

默认的等宽字体。在IE中是否有任何方式让用户指出更多

特别是他的首选字体是serif和sans-serif,

(至少,如果不是草书和幻想也是)?其他

浏览器是否允许为所有这五个通用

说明符指定默认字体?


2.我只是注意到,我的风格没有固定的字体大小的说明符

表格,IE6不会改变表格上字体的大小

控制当我改变文字大小时在浏览器中。页面上的其余部分

页面应该增长或缩小,但不是按钮上的标签或输入字段的

内容。添加


输入,选择,textarea {font-size:100%; }


到我的样式表解决了这个问题。但是,我是否必须诉诸于此,或者是否有其他可能导致问题的其他问题?请

任何其他(当前)浏览器都会出现这个问题吗?


3.关于我刚才读到的关于Verdana问题的内容,这是

启发(我正在向我的客户添加新的

网站设计的库存,他们没有指定泛型以外的字体系列,如果

可能):关于竞争风格的优先级有很多规则

在级联中,以及部分或完全忽略规则不能满足
。在某些时候我应该了解它们,但是时间

我想知道是否有人对这个问题有一个现成的答案:

为了提供适当大小的Verdana对于那些拥有它的人来说,没有

这些字体看起来太小而不适合那些人(实际上或者理论上是理论上的b $ b)这些工作吗? br />

body {font:85%Verdana;字体:100%sans-serif; }





body {font:100%sans-serif;字体:85%Verdana; }





body {font:100%sans-serif; }

body {font:85%Verdana; }





body {font:85%Verdana; }

body {font:100%sans-serif; }


-

Harlan Messinger

从我的电子邮件地址中删除第一个点。

Veuillez?ter le premier point de mon adresse de courriel。

1. CSS has five generic font family specifiers: serif, sans-serif, cursive,
fantasy, monospace. IE lets the users select a default proportional font and
a default monospace font. Is there any way in IE for a user to indicate more
specifically what his preferred fonts are for serif and sans-serif,
respectively (at least, if not cursive and fantasy as well)? Do other
browsers allow a default font to be specified for all five of these generic
specifiers?

2. I just noticed that, with no fixed font-size specifiers in my style
sheet, IE6 nevertheless does not change the size of the lettering on form
controls when I change the text size in the browser. The rest of the text on
the page grows or shrinks as it should, but not the labels on buttons or the
content of input fields. Adding

input, select, textarea {font-size: 100%; }

to my style sheet solves the problem. But do I have to resort to that, or is
there something else that can be causing the problem in the first place? Do
any other (current) browsers exhibit this problem?

3. Regarding what I just read here about the Verdana issue, which was
enlightening (I''m adding to my inventory of suggestions to clients for new
web site designs that they not specify font family beyond the generics, if
possible): There are lots of rules regarding precedence of competing styles
in the cascade, and for the partial or complete ignoring of rules that can''t
be satisfied. At some point I should get to know them, but for the time
being I wondered whether someone has a ready answer for this question: In
order to provide properly sized Verdana for people who have it, without
having the font appear too small for people who don''t, would (in reality or
theoretically) any of these work?

body { font: 85% Verdana; font: 100% sans-serif; }

or

body { font: 100% sans-serif; font: 85% Verdana; }

or

body { font: 100% sans-serif; }
body { font: 85% Verdana; }

or

body { font: 85% Verdana; }
body { font: 100% sans-serif; }

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ?ter le premier point de mon adresse de courriel.

推荐答案




Harlan Messinger写道:


Harlan Messinger wrote:
1. CSS有五种通用字体系列说明符:serif,sans-serif,cursive,
fantasy,monospace。其他
浏览器是否允许为所有这五个通用
说明符指定默认字体?
1. CSS has five generic font family specifiers: serif, sans-serif, cursive,
fantasy, monospace. Do other
browsers allow a default font to be specified for all five of these generic
specifiers?




Netscape 7.1允许设置

比例

Serif

Sans-serif

草书

幻想

Monospace

在Preferences-> Appearance->字体下。

其他基于Mozilla的浏览器也应该可以。


Opera 7.20允许设置

CSS font-family serif

CSS font-family sans-serif

... cursive

...幻想

... monospace

在首选项下 - >字体

-


Martin Honnen
http://JavaScript.FAQTs.com/



Netscape 7.1 allows to set
Proportional
Serif
Sans-serif
Cursive
Fantasy
Monospace
under Preferences->Appearance->Fonts.
Should also be possible with other Mozilla based browsers.

Opera 7.20 allows to set
CSS font-family serif
CSS font-family sans-serif
... cursive
... fantasy
... monospace
under Preferences->Fonts
--

Martin Honnen
http://JavaScript.FAQTs.com/


Harlan Messinger写道:
Harlan Messinger wrote:
1. CSS有五个通用字体系列说明符:serif , 无衬线字体,草书,
幻想,等宽。 IE允许用户选择默认的比例字体和
默认的等宽字体。在IE中是否有任何方式可以让用户更明确地指出他的首选字体是什么样的serif和sans-serif,
(至少,如果不是草书和幻想)?其他
浏览器是否允许为所有这五个通用
说明符指定默认字体?


IE没有。我只是检查了Mozilla(1.7a),它确实。

2.我只是注意到,在我的风格
表中没有固定的字体大小说明符,IE6仍然没有改变当我在浏览器中更改文本大小时,窗体上的字体大小
控制。页面上的其余文本会按原样增长或缩小,但不会增加或缩小按钮上的标签或输入字段的内容。添加

输入,选择,textarea {font-size:100%;我的样式表解决了这个问题。但是,我是否必须诉诸于此,或者是否有其他可能导致问题的原因?
任何其他(当前)浏览器是否出现此问题?


示例页面,URI?怪癖或标准模式?

3.关于我刚刚读到的关于Verdana问题的内容,这是启发性的(我正在向客户提供新的建议清单) />网站设计他们没有指定泛型以外的字体系列,如果可能的话):在级联中有很多关于竞争风格优先级的规则,以及部分或完全忽略规则那不能满足。在某些时候我应该了解它们,但是当时我想知道是否有人对这个问题有一个现成的答案:
为了拥有它的人提供适当大小的Verdana,没有<对于那些不会(实际上或理论上)这些工作的人而言,字体看起来太小了吗?
1. CSS has five generic font family specifiers: serif, sans-serif, cursive,
fantasy, monospace. IE lets the users select a default proportional font and
a default monospace font. Is there any way in IE for a user to indicate more
specifically what his preferred fonts are for serif and sans-serif,
respectively (at least, if not cursive and fantasy as well)? Do other
browsers allow a default font to be specified for all five of these generic
specifiers?
IE does not. And I just checked with Mozilla (1.7a), it does.
2. I just noticed that, with no fixed font-size specifiers in my style
sheet, IE6 nevertheless does not change the size of the lettering on form
controls when I change the text size in the browser. The rest of the text on
the page grows or shrinks as it should, but not the labels on buttons or the
content of input fields. Adding

input, select, textarea {font-size: 100%; }

to my style sheet solves the problem. But do I have to resort to that, or is
there something else that can be causing the problem in the first place? Do
any other (current) browsers exhibit this problem?
Example page, URI? Quirks or standard mode?
3. Regarding what I just read here about the Verdana issue, which was
enlightening (I''m adding to my inventory of suggestions to clients for new
web site designs that they not specify font family beyond the generics, if
possible): There are lots of rules regarding precedence of competing styles
in the cascade, and for the partial or complete ignoring of rules that can''t
be satisfied. At some point I should get to know them, but for the time
being I wondered whether someone has a ready answer for this question: In
order to provide properly sized Verdana for people who have it, without
having the font appear too small for people who don''t, would (in reality or
theoretically) any of these work?




Nope 。

-

Anne van Kesteren

< http://www.annevankesteren.nl/>



Nope.
--
Anne van Kesteren
<http://www.annevankesteren.nl/>


* Harlan Messinger *:
*Harlan Messinger*:

在IE中是否有任何方式可以让用户更具体地指出
他的首选字体是什么样的衬线和sans-serif,分别是
(至少,如果不是草书和幻想)?


我什么都不知道。结合错误的预设和一些错误使得b / b $ b使得通用字体系列几乎无法使用。

其他浏览器是否允许为这五种通用字体指定默认字体
说明者?


是的,例如Opera。预设也不好。

为了给那些拥有它的人提供合适尺寸的Verdana,没有让字体看起来太小而不适合那些不愿意的人。现实或理论上说)任何这些工作?


No.

body {font:85%Verdana;字体:100%sans-serif; }

Is there any way in IE for a user to indicate more specifically
what his preferred fonts are for serif and sans-serif, respectively
(at least, if not cursive and fantasy as well)?
I don''t know any. That in combination with the bad presets and some bugs has
made generic font families almost unusable.
Do other browsers allow a default font to be specified for all five of these generic
specifiers?
Yes, Opera for example. The presets are not good either.
In order to provide properly sized Verdana for people who have it, without
having the font appear too small for people who don''t, would (in reality or
theoretically) any of these work?
No.
body { font: 85% Verdana; font: 100% sans-serif; }




这个和下面的例子都会以同样的方式工作:后者

指定规则获胜。 ''font-size-adjust''将是(接近)一个解决方案,如果

它不仅在Mozilla for Windows中实现。


结论:不要使用Verdana。

顺便说一下,Verdana和许多其他的微软Web一样。字体得到

印刷或卷曲的引用标志错误,这对于

英语对来说并不值得注意,但在许多其他语言中真的很难看。


-

你基本上互相残杀,看看

谁拥有了更好的想象中的朋友。

Rich Jeni关于战争与宗教的关系



This and the following examples would all work in the same way: the latter
specified rule wins. ''font-size-adjust'' would be (close to) a solution, if
it was implemented not only in Mozilla for Windows.

Conclusion: Don''t use Verdana.
By the way, Verdana like many other Microsoft "Web" fonts gets the
typographical or curly quote signs wrong, which isn''t that notable with the
English pair, but really ugly in many other languages.

--
"You''re basically killing each other to see
who''s got the better imaginary friend."
Rich Jeni on war vs. religion


这篇关于IE和其他浏览器:与风格相关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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