Is there no difference between No media and media=“all” in css link?

后端 未结 3 1428
一生所求
一生所求 2021-01-04 13:33

Is there no difference between No media and media=\"all\"?


3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-04 14:32

    Both yes and no it seems. In section 14.4.1 in the specs it says that a stylesheet without a media-type applies to all medias, whilst the other are filtered out when not needed. But in section 14.2.3 it should default to screen, which should be used on non-paged computer screens whilst all should be suitable for all devices (more information on media-descriptors here).

提交回复
热议问题