如何在ASP.NET中添加HTML公式编辑器 [英] How to add html formula editor in asp .net

查看:100
本文介绍了如何在ASP.NET中添加HTML公式编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的网站上写公式
例如r =√x2 + y2

因此,在.net

i want to write formula''s on my site
ex.r = √ x2 + y2

so hows it is possible in .net

推荐答案

中如何实现?您可以简化表达式并使用常规HTML标记.但是,真正的标准是 MathML ,请参见 http://en.wikipedia.org/wiki/MathML [ ^ ].

有关MathML的更多信息:
http://www.w3.org/Math/ [ http://www.w3.org/Math/mathml-faq.html [ ^ ].

HTML5( http://en.wikipedia.org/wiki/Html5 [ http://en.wikipedia.org/wiki/Comparison_of_layout_engines_% 28HTML5%29 [ ^ ],
http://www.w3.org/TR/MathML/chapter2.html [ ^ ].

有关使用MathML的不同方式以及在不同引擎中对它们的支持,请参见:
http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29 [ ^ ].

这是浏览器测试: https://eyeasme.com/Joe/MathML/MathML_browser_test_next [
You can simplify expression and use regular HTML markup. However, the real standard is MathML, see http://en.wikipedia.org/wiki/MathML[^].

More about MathML:
http://www.w3.org/Math/[^],
http://www.w3.org/Math/mathml-faq.html[^].

HTML5 (http://en.wikipedia.org/wiki/Html5[^]) is supposed to embed it as inline element, but most Web browsers do not support it well enough, notably Trident is well behind (layout engine used in IE), see http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29[^],
http://www.w3.org/TR/MathML/chapter2.html[^].

For different ways of using MathML and support of them in different engines, see:
http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29[^].

This is a browser test: https://eyeasme.com/Joe/MathML/MathML_browser_test_next[^].

There are different alternative ways, such as having some engine which converts mathematical expression into bitmaps on the fly, or such bitmaps are pre-rendered off-line. If you want to provide online editor, the second way is not good enough for you. It would be even interesting if it wasn''t so disgusting even to discuss. Reasonable Web standards cannot make a way into practice for years and years. First MathML standard was released in 1998, and what do we have now? And I''m not sure MathML is really comprehensive…

—SA


这篇关于如何在ASP.NET中添加HTML公式编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆