在具有CSS查询(如方向)的链接标记上,媒体属性的浏览器支持是什么? [英] What is the browser support for the media attribute on a link tag with CSS queries (like orientation)?

查看:392
本文介绍了在具有CSS查询(如方向)的链接标记上,媒体属性的浏览器支持是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以找到哪些浏览器支持链接标记的媒体属性中的媒体查询?

Where can i find which browsers support media queries inside the media attribute of a link tag?

示例:

<link rel='stylesheet' media='only screen and (orientation : portrait)' href='portrait.css' />


推荐答案

根据MDN:


不支持CSS3媒体查询的浏览器不一定会识别足够的链接;不要忘记设置后退链接,在HTML 4 *中定义的媒体查询的受限制集。

Browsers not supporting the CSS3 Media Queries won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4*.

caniuse报告的CSS3媒体查询支持

*为HTML4定义的受限媒体查询:
打印,屏幕,听觉,盲文

*Restricted media queries defined for HTML4: print, screen, aural, braille

这篇关于在具有CSS查询(如方向)的链接标记上,媒体属性的浏览器支持是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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