浏览器支持¶
¥Browser support¶
MkDocs 的 Material 竭尽全力支持尽可能多的浏览器,同时保留通过自定义属性和遮罩图像等现代 CSS 功能进行自定义的最简单可能性。
¥Material for MkDocs goes at great lengths to support the largest possible range of browsers while retaining the simplest possibilities for customization via modern CSS features like custom properties and mask images.
支持的浏览器¶
¥Supported browsers¶
下表列出了 Material for MkDocs 提供全面支持的所有浏览器,因此可以假定所有功能均能正常运行。如果您发现在受支持版本范围内的浏览器中某些内容显示不正确,请提交问题:
¥The following table lists all browsers for which Material for MkDocs offers full support, so it can be assumed that all features work without degradation. If you find that something doesn't look right in a browser which is in the supported version range, please open an issue:
浏览器 ¥Browser | 版本 ¥Version | 发布日期 ¥Release date | 用法 ¥Usage | ||
|---|---|---|---|---|---|
桌面 ¥desktop | 移动的 ¥mobile | 全面的 ¥overall | |||
铬合金 ¥ Chrome | 49岁以上 ¥49+ | 2016年3月 ¥03/2016 | 25.65% ¥25.65% | 38.33% ¥38.33% | 63.98% ¥63.98% |
Safari ¥ Safari | 10+ ¥10+ | 2016年9月 ¥09/2016 | 4.63% ¥4.63% | 14.96% ¥14.96% | 19.59% ¥19.59% |
边缘 ¥ Edge | 79岁以上 ¥79+ | 2020年1月 ¥01/2020 | 3.95% ¥3.95% | 无 ¥n/a | 3.95% ¥3.95% |
火狐 ¥ Firefox | 53岁以上 ¥53+ | 2017年4月 ¥04/2017 | 3.40% ¥3.40% | .30% ¥.30% | 3.70% ¥3.70% |
歌剧 ¥ Opera | 36岁以上 ¥36+ | 2016年3月 ¥03/2016 | 1.44% ¥1.44% | .01% ¥.01% | 1.45% ¥1.45% |
92.67% ¥92.67% |
浏览器支持矩阵来源于caniuse.com 。1
¥Browser support matrix sourced from caniuse.com.1
请注意,使用情况数据基于全球浏览器市场份额,因此对于您的目标人群,实际数据可能完全不同。建议您检查一下浏览器类型和版本在用户中的分布情况。
¥Note that the usage data is based on global browser market share, so it could in fact be entirely different for your target demographic. It's a good idea to check the distribution of browser types and versions among your users.
其他浏览器¶
¥Other browsers¶
尽管您的网站可能看起来不如使用现代浏览器浏览时那么完美,但经过一些额外的努力,以下旧版浏览器可能会正常运行:
¥Albeit your site might not look as perfect as when viewed with a modern browser, the following older browser versions might work with some additional effort:
Firefox 31-52 - 由于缺少对遮罩图像的支持,图标将呈现为小方框。虽然无法通过 polyfill 修复此问题,但可以通过完全隐藏图标来缓解。
¥Firefox 31-52 – icons will render as little boxes due to missing support for mask images
边缘 16-18 – 由于缺少对:is 伪选择器的支持,某些元素的间距可能会有点偏离,但可以通过一些额外的努力来缓解。
¥Edge 16-18 – the spacing of some elements might be a little off due to missing support for the :is pseudo selector
Internet Explorer - 不支持,主要是因为缺少对自定义属性的支持。支持 Internet Explorer 的 Material for MkDocs 最新版本是4.6.3 。
¥Internet Explorer - no support, mainly due to missing support for custom properties. The last version of Material for MkDocs to support Internet Explorer is 4.6.3
数据于 2022 年 1 月从caniuse.com收集,主要基于浏览器对自定义属性、遮罩图像和:is 伪选择器(这些属性并非完全可填充)的支持情况。累计市场份额低于 1% 的浏览器未被考虑,但可能仍会完全或部分支持。↩