如何给出选择样式表的规则? [英] How to give rules for choosing style sheets?

查看:68
本文介绍了如何给出选择样式表的规则?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望设备使用为手机媒体类型提供的样式,而不是为媒体类型屏幕指定的

样式,如果设备支持媒体类型

掌上电脑和屏幕。没有为掌上电脑再次指定所有指定的样式

是否有可能?


-

主页 http://www.iki.fi/jarno.suni/

I want a device to use styles given for media type handheld and not the
styles given for media type screen, if the device supports media types
handheld and screen. Is it possible without writing all styles specified
for screen again for handheld?

--
Homepage http://www.iki.fi/jarno.suni/

推荐答案

On Sun,2006年3月12日20:11:49 +0100,Jarno Suni< lo ** @ signature.invalid>

写道:
On Sun, 12 Mar 2006 20:11:49 +0100, Jarno Suni <lo**@signature.invalid>
wrote:
我希望设备使用手持媒体类型的样式而不是媒体类型屏幕的样式,如果设备支持媒体类型
手持设备和屏幕。是否可以不再为掌上电脑再次指定屏幕指定
I want a device to use styles given for media type handheld and not the
styles given for media type screen, if the device supports media types
handheld and screen. Is it possible without writing all styles specified
for screen again for handheld?




为什么不使用三个样式表:

1一个通用的风格,你想要两个设备(屏幕和手持设备)

使用,并用媒体全部引用它们;

2.一个具体对于屏幕,用媒体''屏幕'来引用它们'

(可能''投影''也是?);

3.最后一个专门用于手持设备,参考给他们带媒体

''掌上电脑''。


这样做吗?


参见<网址:http://www.w3.org/TR/REC-CSS2/media.html>


-

______PretLetters:

|博客| http://www.pretletters.net/weblog/weblog.html |

| webontwerp | http://www.pretletters.net/html/webontwerp.html |

| zweefvliegen | http://www.pretletters.net/html/vliegen.html |



Why not use three stylesheets then:
1. one generic with the styles you want both devices (screen and handheld)
to use, and refer to them with media ''all'';
2. one specifically for screens, referring to them with media ''screen''
(possibly ''projection'' too?);
3. the last one specifically for handhelds, referring to them with media
''handheld''.

Will that do?

See also <URL:http://www.w3.org/TR/REC-CSS2/media.html>

--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |


Barbara de Zoete写道:
Barbara de Zoete wrote:
那会吗?


不太好,因为有些手持设备同时支持''掌上''和

''屏幕'',但我想给出完全不同的风格更大的''屏幕''

设备,例如台式电脑。

参见< URL:http://www.w3.org/TR/REC-CSS2 /media.html>
Will that do?
Not well, because some handheld devices support both ''handheld'' and
''screen'', but I want to give totally different style for bigger ''screen''
devices, such as desktop PCs.
See also <URL:http://www.w3.org/TR/REC-CSS2/media.html>




谢谢,但我不知道如何告诉设备使用工作表,如果它支持
支持''屏幕'',但不支持''掌上电''。


-

主页 http://www.iki.fi/jarno.suni/


Barbara de Zoete写道:
Barbara de Zoete wrote:
那会吗?


不太好,因为有些手持设备同时支持''掌上''和

''屏幕'',但我想给出完全不同的风格更大的''屏幕''

设备,例如台式电脑。

参见< URL:http://www.w3.org/TR/REC-CSS2 /media.html>
Will that do?
Not well, because some handheld devices support both ''handheld'' and
''screen'', but I want to give totally different style for bigger ''screen''
devices, such as desktop PCs.
See also <URL:http://www.w3.org/TR/REC-CSS2/media.html>




谢谢,但我看不出我怎么能告诉设备不要使用''屏幕''

样式,如果它也支持''掌上''样式。


-

主页 http://www.iki.fi/jarno.suni/


这篇关于如何给出选择样式表的规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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