2010-01-04 84 views
4

我們是否應該考慮屏幕和打印以外的CSS媒體? http://www.w3.org/TR/CSS2/media.html#media-types我們是否應該考慮屏幕和打印以外的CSS媒體?

all 
    Suitable for all devices. 
braille 
    Intended for braille tactile feedback devices. 
embossed 
    Intended for paged braille printers. 
handheld 
    Intended for handheld devices (typically small screen, limited bandwidth). 
print 
    Intended for paged material and for documents viewed on screen in print preview mode. Please consult the section on paged media for information about formatting issues that are specific to paged media. 
projection 
    Intended for projected presentations, for example projectors. Please consult the section on paged media for information about formatting issues that are specific to paged media. 
screen 
    Intended primarily for color computer screens. 
speech 
    Intended for speech synthesizers. Note: CSS2 had a similar media type called 'aural' for this purpose. See the appendix on aural style sheets for details. 
tty 
    Intended for media using a fixed-pitch character grid (such as teletypes, terminals, or portable devices with limited display capabilities). Authors should not use pixel units with the "tty" media type. 
tv 
    Intended for television-type devices (low resolution, color, limited-scrollability screens, sound available). 

對其他媒體項目是否有任何實際好處?或所有其他(除屏幕和打印等「)

有什麼好處使用其他媒體類型?

+2

如果我在設計一個遊戲相關的網站,我會確保在任何可能的情況下使用*電視*,因爲任天堂Wii會尊重這一點。 – 2010-01-04 20:58:21

回答

2

對於普通的網頁開發人員來說,屏幕和打印可能是唯一需要擔心的問題。

即使是iPhone忽略了手持媒體類型:

iPhone OS忽略打印和手持媒體查詢,因爲這些類型不提供高端的網頁內容。因此,使用iPhone OS的屏幕媒體類型查詢。

來源: Optimizing for Safari on iPhone

其他大多數的媒體類型的針對殘疾用戶。這些用戶通常會爲他們的計算機提供某種輔助技術(如屏幕閱讀器或放大鏡),並且很難知道他們可能使用哪些技術,以及他們是否也會支持備用樣式表。除非你專門針對這些用戶(並且知道他們正在使用哪種技術),否則堅持事實上的標準可能會更好。

+2

誰投了票回答這個問題,你會留下評論嗎? – Seth 2010-01-18 01:02:46

3

好吧,如果你支持輔助設備,講話盲文是非常有用的非常快。例如,大多數網站都不支持這些功能;例如,您可能會更好地使用可在l display中顯示的純文本替代網站。

2

這取決於您定位的受衆羣體 In一般screenprint就足夠了。

1

如果您嘗試構建高度可訪問的網站,可能值得實施不常用的媒體類型,以便可能支持未來的設備。

儘管如果支持,演示媒體將會非常酷。假設Boxee或PS3等設備支持tv,但是我唯一聽說過支持它的是Wii。

對於99%的病例,不要浪費你的時間。使用CSS3媒體查詢和

2

移動設備「手持」 :)

我喜歡的是能夠提供一個可行的替代移動用戶的想法;作爲一項規則,智能手機用戶(與屏幕大小相關的媒體查詢過濾這些內容)值得關注。

隨着不同表示之間的差異,關注信息結構和內容設計變得更加重要。

我想知道「印刷」真的是一個好主意:我們應該鼓勵人們從網絡上印刷內容嗎?在少數情況下,我可以看到這一點的有效性,但不是一般的規則。

+0

由於我們說包含「掌上電腦」的答案是一個有效的答案,我們來試一下相關的表達式: