2017-10-11 59 views

回答

2

你的符號與純HTML的限制,有些是:

<p>I will display &sum;</p> 
 
<p>I will display &minus;</p> 
 
<p>I will display &times;</p> 
 
<p>I will display &radic;</p> 
 
<p>I will display &int;</p> 
 

 
<a href="https://www.w3schools.com/charsets/ref_utf_math.asp">SOURCE</a>

如果你嚴重不過,考慮使用這個庫(它的啓動文件):

https://www.mathjax.org/

與文檔在:

http://docs.mathjax.org/en/latest/start.html

你可以簡單地做到這一點(與mathjax):

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

然後輸入像這樣的數學字符串:

When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are 
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ 

他們的一個例子是:

<script type="text/javascript" async 
 
    src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML"> 
 
</script> 
 
<script type="text/x-mathjax-config"> 
 
    MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}}); 
 
</script> 
 
<div> 
 
When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are 
 
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ 
 
</div>

(對不起,我不能看到您發佈的圖像,它wouldnt加載)

不管怎麼說,希望這有助於!

+0

我想特別的數學符號 調製和置換符號,...... –

+0

是,MathJax具有所有的數學符號,看看鏈接靠近底部 –

+0

我會的,謝謝。 –