我使用MathML在HTML中使用以下网页。在我的Firefox中,这显示了一个很好的数学方程$ a x ^ 2 + b x + c $,就像MathML应该的那样。
我想我现在可以将此网页加载到我的Visual Studio 2015 WPF应用程序的WebBrowser中。但是,MathML无法按预期呈现。我想WebBrowser组件不能处理MathML。
我有第二个使用JavaScript的网页,出于类似的原因我需要这个网页。这也适用于Firefox,但不适用于Visual Studio的WebBrowser。
有什么建议吗?
<html>
<head>
<title>
Title
</title>
</head>
<body>
MathML:
<br>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>a</mi>
<mo>⁢</mo>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<mi>b</mi>
<mo>⁢ </mo>
<mi>x</mi>
<mo>+</mo>
<mi>c</mi>
</mrow>
</math>
</body>
</html>
答案 0 :(得分:0)
Visual Studio(可能是IE)中的WebBrowser尚不支持MathML。可以使用CSS和javascript排版数学。然后,网页需要包含
<!-- saved from url=(0014)about:internet -->
为了不弹出“允许阻止的内容”。