我正在使用 MathJax 在设计用于在移动设备(例如 iphone)上查看的页面上呈现数学符号。当我使用元标记时
<meta name="viewport" content="user-scalable=no, width=device-width" />
这会以某种方式导致问题。MathJax 不加载网络字体,而是依靠图像字体,这是劣等的。如果我明确设置大于某个截止值的像素宽度,这个问题就会消失。如果我设置
<meta name="viewport" content="user-scalable=no, width=360px" />
例如,它可以毫无问题地加载网络字体。所以我想知道......有没有一个优雅的解决方案?我不希望使用绝对宽度,但在我的书中,使用 web-fonts 呈现的页面具有更高的优先级。
以下是在这方面失败的页面示例:
<html>
<head>
<meta name="viewport" content="user-scalable=no, width=device-width" />
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript"
src="https://d3eoax9i5htok0.cloudfront.net/mathjax/latest/MathJax.js?config=TeX- AMS-MML_HTMLorMML">
</script>
</head>
<body>
<span style="color:green">
$$\sum_{n=0}^\infty x^n$$
</span>
</body>
</html>