Firefox中不显示阿拉伯脚本语言

问题描述 投票:0回答:1

这是我编写的代码:

<div id="testdiv" style="position:absolute; top:250; left:10; width:1200; height:200; border:solid 2px #005050;">
    <span style="direction:rtl; font-family:jameel noori nastaleeq;">دی گئی مساوات کو دیکھئے</span>
</div>

我没有在部分中指定任何方向,并且我的代码没有任何标记。

在firefox中,以上代码的结果是这样的:How the text appears in Firefox

虽然在Chrome中,相同的代码显示了以下结果:How the text appears in Chrome

Chrome的结果就是应该的样子。我不知道为什么Firefox会突然出现这种情况。

[我在这里做错了什么以及如何解决,以使Firefox中的结果与Chrome中的结果匹配。

[如果有人想知道文本的含义,它会说:查看给定的等式。语言是乌尔都语。

页面的完整源代码发布在下面:

<html>
<head>
    <title>MathJax Test</title>
    <script type="text/javascript" async
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-MML-AM_CHTML">
    </script>

    <script type="text/x-mathjax-config">
        MathJax.Hub.Config({
        tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
        });
    </script>
</head>

<body>
<canvas id="test" width="500" height="200" style="border:solid 2px #000000;"></canvas>

<div id="testdiv" style="position:absolute; top:250; left:10; width:1200; height:200; border:solid 2px #005050;">
    <span style="direction:rtl; font-family:jameel noori nastaleeq;">دی گئی مساوات کو دیکھئے</span>

</div>
</body>
</html>
html firefox right-to-left arabic-support urdu
1个回答
1
投票

您未指定编码。如果您依赖默认值,则这些值可能不正确。

© www.soinside.com 2019 - 2024. All rights reserved.