1
以下是我用来测试MathML渲染的MathML示例代码。MathML在Windows XP上使用Firefox渲染效果不佳,但在Linux上渲染良好
演示网址:在Windows XP http://jsfiddle.net/3ak4P/
<!DOCTYPE html>
<html lang="en">
<head>
<title>MathML demo</title>
<style type="text/css">
math {
display: block;
font-size: 16px;
}
</style>
</head>
<body>
<math>
<mrow>
<munder>
<mo>∑</mo>
<mrow>
<mi>p</mi>
<mtext> prime</mtext>
</mrow>
</munder>
<mi>f</mi>
<mo stretchy="false">(</mo>
<mi>p</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<msub>
<mo stretchy="false">∫</mo>
<mrow>
<mi>t</mi>
<mo>></mo>
<mn>1</mn>
</mrow>
</msub>
<mi>f</mi>
<mo stretchy="false">(</mo>
<mi>t</mi>
<mo stretchy="false">)</mo>
<mo> </mo>
<mo mathvariant="italic">d</mo>
<mi>π</mi>
<mo stretchy="false">(</mo>
<mi>t</mi>
<mo stretchy="false">)</mo>
</mrow>
</math>
</body>
</html>
输出与Firefox 8:在Debian GNU/Linux的
输出与Firefox 8:
现在,考虑到不能坚持网站用户安装新字体等等,有什么方法可以确保Windows用户在使用MathML编写数学公式方面也有很好的体验?