{"id":8108,"date":"2018-10-24T23:42:02","date_gmt":"2018-10-24T15:42:02","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8108"},"modified":"2020-03-13T23:26:18","modified_gmt":"2020-03-13T15:26:18","slug":"mathml-%e5%85%bc%e5%ae%b9-%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2018\/10\/mathml-%e5%85%bc%e5%ae%b9-%e5%b7%a5%e5%85%b7\/","title":{"rendered":"\u6570\u5b66\u6807\u8bb0\u8bed\u8a00MathML\u7b80\u4ecb\u3001\u5de5\u5177\u53ca\u517c\u5bb9"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8108\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=8108<\/a><br \/>\n\u672c\u6587\u53ef\u5168\u6587\u8f6c\u8f7d\uff0c\u4e2a\u4eba\u7f51\u7ad9\u65e0\u9700\u6388\u6743\uff0c\u53ea\u8981\u4fdd\u7559\u539f\u4f5c\u8005\u3001\u51fa\u5904\u4ee5\u53ca\u6587\u4e2d\u94fe\u63a5\u5373\u53ef\uff0c\u4efb\u4f55\u7f51\u7ad9\u5747\u53ef\u6458\u8981\u805a\u5408\uff0c\u5546\u7528\u8bf7\u8054\u7cfb\u6388\u6743\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/mathml-thumb2.jpg\" width=\"242\" height=\"150\" alt=\"MathML\u5934\u56fe\u7f29\u7565\u56fe\" class=\"alignright thumb size-medium\" style=\"position:absolute;clip:rect(0 0 0 0)\" \/><\/p>\n<style>.div-p-hidden p{display:none;}.entry dt{font-weight: bold; font-family: x-locale-heading-primary,zillaslab,Palatino,\"Palatino Linotype\",x-locale-heading-secondary,Source Han Serif SC,STZhongsong,simsun,serif;}<\/style>\n<p><span class=\"s\">\/\/zxx: \u672c\u6587\u5728Firefox\u6216\u8005Safari\u6d4f\u89c8\u5668\u4e0b\u6d4f\u89c8\u4f1a\u6709\u66f4\u597d\u7684\u4f53\u9a8c\u3002<\/span><\/p>\n<h3>\u4e00\u3001MathML\u7b80\u4ecb<\/h3>\n<p>MathML\u6307\u201c\u6570\u5b66\u6807\u8bb0\u8bed\u8a00\u201d\uff0c\u662fXML\u8bed\u8a00\u7684\u4e00\u4e2a\u5b50\u96c6\uff0c\u7528\u6765\u5728web\u7f51\u9875\uff0c\u751a\u81f3\u90e8\u5206\u8f6f\u4ef6\u4e2d\u663e\u793a\u6570\u5b66\u516c\u5f0f\u3002<\/p>\n<p>\u7b80\u8a00\u4e4b\uff0c\u5c31\u662f\u4f7f\u7528\u7279\u6b8a\u7684\u7c7b\u4f3cHTML\u7684\u6807\u8bb0\u5728\u7f51\u9875\u4e2d\u663e\u793a\u6570\u5b66\u516c\u5f0f\u3002<\/p>\n<p>\u56e0\u4e3a\u6709\u4e9b\u6570\u5b66\u516c\u5f0f\u5f88\u590d\u6742\uff0c\u666e\u901aHTML\u6839\u672c\u6ca1\u6cd5\u9a7e\u9a6d\uff0c\u4f8b\u5982\u4e0b\u9762\u8fd9\u4e2a\u516c\u5f0f\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-23_231659.png\" width=\"353\" height=\"60\" alt=\"\u4e00\u4e2a\u590d\u6742\u7684\u6570\u5b66\u516c\u5f0f\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u90fd\u6709\u54ea\u4e9bMathML\u6807\u8bb0\u5462\uff1f\u53ef\u4ee5\u770b\u4e0b\u9762\u7684\u5b9a\u4e49\u5217\u8868\u8bf4\u660e\uff08\u975e<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8108\">\u539f\u6587\u8bbf\u95ee<\/a>\u4f1a\u6570\u5b66\u516c\u5f0f\u6392\u7248\u5f02\u5e38\uff09\uff1a<\/p>\n<h4>1. \u6309\u7c7b\u522b\u5206\u7c7b\u7684MathML\u8868\u73b0\u5143\u7d20<\/h4>\n<div style=\"font-family:STHeiti, SimHei\"><strong>\u9876\u7ea7\u5143\u7d20<\/strong><\/div>\n<dl>\n<dt>&lt;math&gt;<\/dt>\n<dd>\u7528\u5728\u6700\u5916\u90e8\u5305\u88f9\uff0c\u8868\u793a\u91cc\u9762\u7684\u90fd\u662f\u6570\u5b66\u516c\u5f0f\u3002\u4f8b\u5982\uff0c\u5c31\u4e00\u4e2a\u53d8\u91cf<code>x<\/code>\uff0c\u5219\u6709\uff1a<\/p>\n<pre>&lt;math&gt;&lt;mi&gt;x&lt;\/mi&gt;&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u6548\u679c\u662f\uff1a<\/span><math><mi>x<\/mi><\/math><\/div>\n<\/dd>\n<\/dl>\n<div style=\"font-family:STHeiti, SimHei\"><strong>\u8bb0\u53f7\u5143\u7d20<\/strong><\/div>\n<dt>&lt;mglyph&gt;<\/dt>\n<dd>\u6709\u4e9b\u73b0\u5b58\u7684Unicode\u5b57\u7b26\u662f\u4e0d\u53ef\u7528\u7684\uff0c\u6b64\u65f6\u5c31\u53ef\u4ee5\u4f7f\u7528<code>&lt;mglyph&gt;<\/code>\u66ff\u6362\u663e\u793a\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3aMathML\u4e16\u754c\u4e2d\u7684\u56fe\u7247\u5143\u7d20\uff0c\u652f\u6301<code>width<\/code>, <code>height<\/code>\u4ee5\u53ca<code>alt<\/code>\u7b49\u5c5e\u6027\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;math&gt;\r\n  &lt;mi&gt;&lt;mglyph src=\"my-glyph.png\" alt=\"my glyph\"\/&gt;&lt;\/mi&gt;\r\n&lt;\/math&gt;<\/pre>\n<\/dd>\n<dt>&lt;mi&gt;<\/dt>\n<dd><code>mi<\/code>\u662f&#8217;math identifier&#8217;\u7684\u7f29\u5199\uff0c\u5b57\u9762\u610f\u601d\u6570\u5b66\u6807\u8bc6\u7b26\uff0c\u591a\u6307\u51fd\u6570\u540d\uff0c\u53d8\u91cf\u6216\u8005\u7b26\u53f7\u5e38\u91cf\u3002\u793a\u610f\uff08\u4e0b\u9762\u6807\u8bc6\u7b26\u4e4b\u95f4\u65e0\u4efb\u4f55\u5173\u8054\uff0c\u4ec5\u4ec5\u793a\u610f\u8bed\u4e49\uff09\uff1a<\/p>\n<pre>&lt;math&gt; \r\n  &lt;mi&gt; y &lt;\/mi&gt;  \r\n  &lt;mi&gt; sin &lt;\/mi&gt;\r\n  &lt;mi mathvariant=\"monospace\"&gt; x &lt;\/mi&gt;\r\n  &lt;mi mathvariant=\"bold\"&gt; &amp;pi; &lt;\/mi&gt;\r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u6548\u679c\u662f\uff1a<\/span><math><mi> y <\/mi><mi> sin <\/mi><mi mathvariant=\"monospace\"> x <\/mi><mi mathvariant=\"bold\"> &pi; <\/mi><\/math><\/p>\n<div><\/dd>\n<dt>&lt;mn&gt;<\/dt>\n<dd><code>mn<\/code>\u662f&#8217;math number&#8217;\u7684\u7f29\u5199\uff0c\u8868\u793a\u6570\u503c\uff0c\u652f\u6301\u5404\u79cd\u6570\u503c\u3002\u793a\u610f\uff08\u4ec5\u793a\u610f\uff0c\u65e0\u5173\u8054\uff09\uff1a<\/p>\n<pre>&lt;math&gt; \r\n  &lt;mn&gt; 0 &lt;\/mn&gt;\r\n  &lt;mn&gt; 1.337 &lt;\/mn&gt;\r\n  &lt;mn&gt; twelve &lt;\/mn&gt;\r\n  &lt;mn&gt; XVI &lt;\/mn&gt;     \r\n  &lt;mn&gt; 2e10 &lt;\/mn&gt; \r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u6548\u679c\u662f\uff1a<\/span><math><mn> 0 <\/mn><mn> 1.337 <\/mn><mn> twelve <\/mn><mn> XVI <\/mn><mn> 2e10 <\/mn> <\/math><\/p>\n<div><\/dd>\n<dt>&lt;mo&gt;<\/dt>\n<dd><code>mn<\/code>\u662f&#8217;math operators&#8217;\u7684\u7f29\u5199\uff0c\u8868\u793a\u6570\u5b66\u64cd\u4f5c\u7b26\uff0c\u4f8b\u5982\u52a0\u51cf\u4e58\u9664\uff0c\u5404\u79cd\u62ec\u53f7\uff0c\u5206\u53f7\u7b49\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt;\r\n&lt;mrow&gt;\r\n  &lt;mn&gt;5&lt;\/mn&gt;\r\n  &lt;mo&gt;+&lt;\/mo&gt;\r\n  &lt;mn&gt;5&lt;\/mn&gt;\r\n&lt;\/mrow&gt; \r\n\r\n&lt;mrow&gt;\r\n  &lt;mo&gt; [ &lt;\/mo&gt; \r\n  &lt;mrow&gt;\r\n    &lt;mn&gt; 0 &lt;\/mn&gt;\r\n    &lt;mo&gt; ; &lt;\/mo&gt; \r\n    &lt;mn&gt; 1 &lt;\/mn&gt;\r\n  &lt;\/mrow&gt;\r\n  &lt;mo&gt; ) &lt;\/mo&gt;\r\n&lt;\/mrow&gt;\r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u6548\u679c\u662f\uff1a<\/span><math><mrow>  <mn>5<\/mn>  <mo>+<\/mo>  <mn>5<\/mn><\/mrow> <mrow>  <mo> [ <\/mo><mrow><mn> 0 <\/mn><mo> ; <\/mo> <mn> 1 <\/mn>  <\/mrow><mo> ) <\/mo><\/mrow><\/math><\/p>\n<div><\/dd>\n<dt>&lt;ms&gt;<\/dt>\n<dd><code>ms<\/code>\u662f&#8217;math string literal&#8217;\u7684\u7f29\u5199\uff0c\u8868\u793a\u4e00\u4e2a\u5b57\u7b26\u4e32\u6587\u5b57\uff0c\u8fd9\u4e2a\u5b57\u7b26\u4e32\u9700\u8981\u7531\u7f16\u7a0b\u8bed\u8a00\u548c\u8ba1\u7b97\u673a\u4ee3\u6570\u7cfb\u7edf\u6765\u89e3\u91ca\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5b57\u7b26\u4e32\u6587\u5b57\u663e\u793a\u4e3a\u7528\u53cc\u5f15\u53f7\u62ec\u8d77\u6765\uff08<code>&amp;quot;<\/code>\uff09; \u901a\u8fc7\u4f7f\u7528<code>lquote<\/code>\u548c<code>rquote<\/code>\u5c5e\u6027\uff0c\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u8981\u663e\u793a\u7684\u81ea\u5b9a\u4e49\u5b57\u7b26\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt;\r\n  &lt;ms lquote=\"\u201e\" rquote=\"\u201c\"&gt; abc &lt;\/ms&gt;\r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u6548\u679c\u662f\uff1a<\/span><math><ms lquote=\"\u201e\" rquote=\"\u201c\"> abc <\/ms><\/math><\/p>\n<div><\/dd>\n<dt>&lt;mspace&gt;<\/dt>\n<dd><code>mspace<\/code>\u662f&#8217;math space&#8217;\u7684\u7f29\u5199\uff0c\u8868\u793a\u7a7a\u767d\u95f4\u8ddd\uff0c\u5176\u5c3a\u5bf8\u53ef\u4ee5\u901a\u8fc7<code>width<\/code>, <code>height<\/code>\u4ee5\u53ca<code>depth<\/code>\u7b49\u5c3a\u5bf8\u63a7\u5236\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt;\r\n  &lt;mi&gt;x&lt;\/mi&gt;\r\n  &lt;mspace width=\"40px\"&gt;&lt;\/mspace&gt;\r\n  &lt;mi&gt;y&lt;\/mi&gt;\r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u6548\u679c\u662f\uff1a<\/span><math><mi>x<\/mi><mspace width=\"40px\" style=\"margin:0 -webkit-calc(19px + 1px)\"><\/mspace><mi>y<\/mi><\/math><\/div>\n<\/dd>\n<dt>&lt;mtext&gt;<\/dt>\n<dd>MathML <code>&lt;mtext&gt;<\/code>\u5143\u7d20\u7528\u4e8e\u5448\u73b0\u6ca1\u6709\u7b26\u53f7\u542b\u4e49\u7684\u4efb\u610f\u6587\u672c\uff0c\u4f8b\u5982\u6ce8\u91ca\u6216\u6ce8\u89e3\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt; \r\n  &lt;mtext&gt; \u6bd5\u8fbe\u54e5\u62c9\u65af\u5b9a\u7406 &lt;\/mtext&gt;  \r\n  &lt;mtext&gt; \/* \u5728\u8fd9\u91cc\u6ce8\u91ca *\/ &lt;\/mtext&gt;\r\n&lt;\/math&gt;<\/pre>\n<\/dd>\n<div style=\"font-family:STHeiti, SimHei\"><strong>\u603b\u4f53\u5e03\u5c40<\/strong><\/div>\n<dt>&lt;menclose&gt;<\/dt>\n<dd>MathML <code>&lt;menclose&gt;<\/code>\u5143\u7d20\u7528\u6765\u628a\u5185\u5bb9\u5c01\u95ed\u5728\u6307\u5b9a\u7684\u8bb0\u53f7\u4e2d\uff08\u901a\u8fc7\u8bbe\u7f6e<code>notation<\/code>\u5c5e\u6027\uff09\u3002\u793a\u610f\u4e00\u4e2a\u6839\u53f7\u6548\u679c\uff1a<\/p>\n<pre>&lt;math&gt; \r\n  &lt;menclose notation=\"radical\"&gt;\r\n     &lt;msup&gt;&lt;mi&gt;a&lt;\/mi&gt;&lt;mn&gt;2&lt;\/mn&gt;&lt;\/msup&gt;\r\n     &lt;mo&gt;+&lt;\/mo&gt;\r\n     &lt;msup&gt;&lt;mi&gt;b&lt;\/mi&gt;&lt;mn&gt;2&lt;\/mn&gt;&lt;\/msup&gt;\r\n  &lt;\/menclose&gt;\r\n&lt;\/math&gt;<\/pre>\n<p>\u5728\u652f\u6301\u7684\u6d4f\u89c8\u5668\uff0c\u4f8b\u5982Firefox\u6d4f\u89c8\u5668\u4e2d\uff0c\u8868\u73b0\u4f1a\u5982\u540e\u9762\u8fd9\u6837\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_204900.png\" width=\"69\" height=\"25\" alt=\"\u6839\u53f7\u6548\u679c\u622a\u56fe\" class=\"alignnone size-medium\" align=\"absmiddle\" \/><\/p>\n<p><code>&lt;menclose&gt;<\/code>\u5143\u7d20\u652f\u6301\u7684\u5c01\u95ed\u7b26\u5408\u975e\u5e38\u591a\uff0c\u6b3e\u5f0f\u5404\u79cd\u5404\u6837\uff0c\u8ba9\u4eba\u5927\u5f00\u773c\u754c\uff0c\u6709\u5174\u8da3\u53ef\u4ee5\u770b<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/MathML\/Element\/menclose\" rel=\"noopener nofollow\" target=\"_blank\">MDN\u8fd9\u4e2a\u6587\u6863<\/a>\u3002\n<\/dd>\n<dt>&lt;merror&gt;<\/dt>\n<dd>MathML <code>&lt;merror&gt;<\/code>\u5143\u7d20\u7528\u6765\u6807\u8bb0\u8fd9\u4e2a\u8ba1\u7b97\u516c\u5f0f\u6216\u8005\u8868\u8fbe\u5f0f\u662f\u9519\u8bef\u7684\uff0c\u6d4f\u89c8\u5668\u4f1a\u901a\u8fc7\u8fb9\u6846\u548c\u80cc\u666f\u8272\u6837\u5f0f\u52a0\u4ee5\u660e\u663e\u533a\u5206\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;merror&gt;\r\n  &lt;mrow&gt;\r\n    &lt;mtext&gt;\u9664\u4ee50\uff1a&lt;\/mtext&gt;\r\n    &lt;mfrac&gt;\r\n      &lt;mn&gt; 1 &lt;\/mn&gt;\r\n      &lt;mn&gt; 0 &lt;\/mn&gt;\r\n    &lt;\/mfrac&gt;\r\n  &lt;\/mrow&gt;\r\n&lt;\/merror&gt;\r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u5f53\u524d\u6d4f\u89c8\u5668\u5b9e\u65f6\u6548\u679c\u662f\uff1a<\/span><math><merror><mrow> <mtext>\u9664\u4ee50\uff1a<\/mtext> <mfrac>  <mn> 1 <\/mn> <mn> 0 <\/mn>    <\/mfrac>  <\/mrow><\/merror><\/math><\/div>\n<p>Firefox\u6d4f\u89c8\u5668\u622a\u56fe\u6548\u679c\u662f\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_210128.png\" width=\"86\" height=\"33\" alt=\"\u51fa\u9519Firefox\u622a\u56fe\u6548\u679c\" class=\"alignnone size-medium\" align=\"absmiddle\" \/>\n<\/dd>\n<dt>&lt;mfenced&gt;<\/dt>\n<dd>MathML <code>&lt;maction&gt;<\/code>\u5143\u7d20\u53ef\u4ee5\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7684\u5bf9\u79f0\u95ed\u5408\u7b26\u53f7\uff08\u5982\u62ec\u53f7\uff09\uff0c\u4ee5\u53ca\u81ea\u5b9a\u4e49\u5206\u9694\u7b26\uff08\u5982\u9017\u53f7\uff09\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt;\r\n  &lt;mfenced open=\"{\" close=\"}\" separators=\";;,\"&gt; \r\n    &lt;mi&gt;a&lt;\/mi&gt; \r\n    &lt;mi&gt;b&lt;\/mi&gt; \r\n    &lt;mi&gt;c&lt;\/mi&gt; \r\n    &lt;mi&gt;d&lt;\/mi&gt; \r\n    &lt;mi&gt;e&lt;\/mi&gt; \r\n  &lt;\/mfenced&gt; \r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u5f53\u524d\u6d4f\u89c8\u5668\u5b9e\u65f6\u6548\u679c\u662f\uff1a<\/span><math><mfenced open=\"{\" close=\"}\" separators=\";;,\"><mi>a<\/mi><mi>b<\/mi><mi>c<\/mi><mi>d<\/mi><mi>e<\/mi><\/mfenced><\/math><\/div>\n<p>\u5728\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4e0b\u9762\u4f1a\u8fd9\u6837\u5448\u73b0\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_210837.png\" width=\"86\" height=\"19\" alt=\"\u81ea\u5b9a\u4e49\u62ec\u53f7\u548c\u5206\u9694\u7b26\u6548\u679c\u622a\u56fe\" class=\"alignnone size-medium\" align=\"absmiddle\" \/><\/dd>\n<dt>&lt;mfrac&gt;<\/dt>\n<dd>MathML <code>&lt;mfrac&gt;<\/code>\u6307<code>'math fraction'<\/code>\uff0c\u8868\u793a\u5206\u6570\uff0c\u4e5f\u5373\u662f\u9664\u6cd5\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt;  \r\n  &lt;mfrac bevelled=\"true\"&gt;\r\n     &lt;mfrac&gt;\r\n        &lt;mi&gt; a &lt;\/mi&gt;\r\n        &lt;mi&gt; b &lt;\/mi&gt;\r\n     &lt;\/mfrac&gt;\r\n     &lt;mfrac&gt;\r\n        &lt;mi&gt; c &lt;\/mi&gt;\r\n        &lt;mi&gt; d &lt;\/mi&gt;\r\n     &lt;\/mfrac&gt;\r\n  &lt;\/mfrac&gt;\r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u5f53\u524d\u6d4f\u89c8\u5668\u5b9e\u65f6\u6548\u679c\u662f\uff1a<\/span><math>  <mfrac bevelled=\"true\">     <mfrac>        <mi> a <\/mi>        <mi> b <\/mi>     <\/mfrac>     <mfrac>        <mi> c <\/mi>        <mi> d <\/mi>     <\/mfrac>  <\/mfrac><\/math><\/div>\n<p>\u5728\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4e0b\u9762\u4f1a\u8fd9\u6837\u5448\u73b0\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_211415.png\" width=\"33\" height=\"33\" alt=\"\u5206\u6570\u6548\u679c\" class=\"alignnone size-medium\" align=\"absmiddle\" \/><\/dd>\n<dt>&lt;mpadded&gt;<\/dt>\n<dd>MathML <code>&lt;mpadded&gt;<\/code>\u5143\u7d20\u7528\u6765\u7ed9\u5c01\u95ed\u5185\u5bb9\u589e\u52a0\u683c\u5916\u7684padding\u4e00\u904d\u8fdb\u884c\u4f4d\u7f6e\u548c\u5c3a\u5bf8\u7684\u8c03\u6574\u3002<\/dd>\n<dt>&lt;mphantom&gt;<\/dt>\n<dd>Phantom\u8fd9\u4e2a\u5355\u8bcd\u662f\u5e7b\u5f71\u7684\u610f\u601d\u3002\u56e0\u6b64MathML <code>&lt;mphantom&gt;<\/code>\u8868\u793a\u5f53\u524d\u5143\u7d20\u662f\u4e2a\u201c\u5e7b\u5f71\u201d\uff0c\u4e5f\u5c31\u662f\u4e0d\u53ef\u89c1\uff0c\u4f46\u662f\u4f4d\u7f6e\u5c3a\u5bf8\u90fd\u4fdd\u7559\uff0c\u7c7b\u4f3cCSS\u4e16\u754c\u4e2d\u7684<code>visibility:hidden<\/code>\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt;\r\n&lt;mrow&gt;\r\n  &lt;mi&gt; x &lt;\/mi&gt;\r\n  &lt;mo&gt; + &lt;\/mo&gt; \r\n  &lt;mphantom&gt;\r\n    &lt;mi&gt; y &lt;\/mi&gt;\r\n    &lt;mo&gt; + &lt;\/mo&gt;\r\n  &lt;\/mphantom&gt;\r\n  &lt;mi&gt; z &lt;\/mi&gt;\r\n&lt;\/mrow&gt;\r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u5f53\u524d\u6d4f\u89c8\u5668\u5b9e\u65f6\u6548\u679c\u662f\uff1a<\/span><math><mrow>  <mi> x <\/mi>  <mo> + <\/mo>   <mphantom>    <mi> y <\/mi>    <mo> + <\/mo>  <\/mphantom>  <mi> z <\/mi><\/mrow><\/math><\/div>\n<p>\u5728\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4e0b\u9762\u4f1a\u8fd9\u6837\u5448\u73b0\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_212300.png\" width=\"69\" height=\"15\" alt=\"\u5e7b\u5f71\u6548\u679c\" class=\"alignnone size-medium\" align=\"absmiddle\" \/>\n<\/dd>\n<dt>&lt;mroot&gt;<\/dt>\n<dd>MathML <code>&lt;mroot&gt;<\/code>\u5143\u7d20\u8868\u793a\u6839\u53f7\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt;\r\n &lt;mroot&gt;\r\n    &lt;mi&gt;x&lt;\/mi&gt;\r\n    &lt;mn&gt;3&lt;\/mn&gt;\r\n &lt;\/mroot&gt; \r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u5f53\u524d\u6d4f\u89c8\u5668\u5b9e\u65f6\u6548\u679c\u662f\uff1a<\/span><math> <mroot>    <mi>x<\/mi>    <mn>3<\/mn> <\/mroot> <\/math><\/div>\n<p>\u5728\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4e0b\u9762\u4f1a\u8fd9\u6837\u5448\u73b0\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_212629.png\" width=\"30\" height=\"20\" alt=\"\u6839\u53f7\u6548\u679c\" class=\"alignnone size-medium\" align=\"absmiddle\" \/><\/dd>\n<dt>&lt;mrow&gt;<\/dt>\n<dd>MathML <code>&lt;mrow&gt;<\/code>\u5143\u7d20\u7528\u4e8e\u5bf9\u5b50\u8868\u8fbe\u5f0f\u8fdb\u884c\u5206\u7ec4\uff0c\u5b50\u8868\u8fbe\u5f0f\u901a\u5e38\u5305\u542b\u4e00\u4e2a\u6216\u591a\u4e2a\u8fd0\u7b97\u7b26\u53ca\u5176\u5404\u81ea\u7684\u64cd\u4f5c\u6570\uff08\u4f8b\u5982<mi>\u548c<mn>\uff09\u3002 \u6b64\u5143\u7d20\u6c34\u5e73\u5448\u73b0\u3002\u4e0a\u9762\u5f88\u591a\u6848\u4f8b\u5df2\u7ecf\u6709\u793a\u610f\uff0c\u8fd9\u91cc\u4e0d\u91cd\u590d\u6f14\u793a\u3002<\/dd>\n<dt>&lt;msqrt&gt;<\/dt>\n<dd>MathML <code>&lt;msqrt&gt;<\/code>\u5143\u7d20\u8868\u793a\u5f00\u5e73\u65b9\u6839\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt;\r\n &lt;msqrt&gt;\r\n    &lt;mi&gt;x&lt;\/mi&gt;\r\n  &lt;\/msqrt&gt; \r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u5f53\u524d\u6d4f\u89c8\u5668\u5b9e\u65f6\u6548\u679c\u662f\uff1a<\/span><math> <msqrt>    <mi>x<\/mi>  <\/msqrt> <\/math><\/div>\n<\/dd>\n<dt>&lt;mstyle&gt;<\/dt>\n<dd>MathML <code>&lt;mstyle&gt;<\/code>\u5143\u7d20\u7528\u4e8e\u66f4\u6539\u5176\u5b50\u9879\u7684\u6837\u5f0f\u3002\u4f8b\u5982\u8bbe\u7f6e\u989c\u8272\u4e3a\u8336\u8272\uff1a<\/p>\n<pre>&lt;math&gt; \r\n  &lt;mstyle displaystyle=\"true\" mathcolor=\"teal\"&gt;\r\n    &lt;mrow&gt;\r\n      &lt;mi&gt;i&lt;\/mi&gt;\r\n      &lt;mo form=\"infix\"&gt;=&lt;\/mo&gt;\r\n      &lt;mn&gt;1&lt;\/mn&gt;\r\n    &lt;\/mrow&gt;\r\n  &lt;\/mstyle&gt;\r\n&lt;\/math&gt;<\/pre>\n<p>\u5728\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4e0b\u9762\u4f1a\u8fd9\u6837\u5448\u73b0\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_213711.png\" width=\"47\" height=\"19\" alt=\"\u989c\u8272\u53d8\u5316\u6548\u679c\" class=\"alignnone size-medium\" align=\"absmiddle\" \/><\/dd>\n<div style=\"font-family:STHeiti, SimHei\"><strong>\u811a\u672c\u548c\u9650\u5236\u5143\u7d20<\/strong><\/div>\n<dt>&lt;mmultiscripts&gt;<\/dt>\n<dd>MathML <code>&lt;mmultiscripts&gt;<\/code>\u5143\u7d20\u5141\u8bb8\u4f60\u521b\u5efa\u4e00\u4e2a\u7c7b\u4f3c\u5f20\u91cf\u5bf9\u8c61\u3002\u201c\u5f20\u91cf\u201d\uff08tensor\uff09\u7406\u8bba\u662f\u6570\u5b66\u7684\u4e00\u4e2a\u5206\u652f\u5b66\u79d1\uff0c\u5728\u529b\u5b66\u4e2d\u6709\u91cd\u8981\u5e94\u7528\u3002\u5f20\u91cf\u662f\u4e00\u4e2a\u5b9a\u4e49\u5728\u7684\u4e00\u4e9b\u5411\u91cf\u7a7a\u95f4\u548c\u4e00\u4e9b\u5bf9\u5076\u7a7a\u95f4\u7684\u7b1b\u5361\u513f\u79ef\u4e0a\u7684\u591a\u91cd\u7ebf\u6027\u6620\u5c04\uff0c\u5176\u5750\u6807\u662f|n|\u7ef4\u7a7a\u95f4\u5185\uff0c\u6709|n|\u4e2a\u5206\u91cf\u7684\u4e00\u79cd\u91cf\uff0c \u5176\u4e2d\u6bcf\u4e2a\u5206\u91cf\u90fd\u662f\u5750\u6807\u7684\u51fd\u6570\uff0c \u800c\u5728\u5750\u6807\u53d8\u6362\u65f6\uff0c\u8fd9\u4e9b\u5206\u91cf\u4e5f\u4f9d\u7167\u67d0\u4e9b\u89c4\u5219\u4f5c\u7ebf\u6027\u53d8\u6362\u3002<\/p>\n<p>\u8fd9\u4e2a\u5143\u7d20\u7684\u7406\u89e3\u96be\u5ea6\u5df2\u7ecf\u8d85\u51fa\u6211\u7684\u80fd\u529b\u8303\u7574\uff0c\u6e9c\u4e86\u6e9c\u4e86\u2026\u2026<\/dd>\n<dt>&lt;mover&gt;<\/dt>\n<dd>MathML <code>&lt;mover&gt;<\/code>\u5143\u7d20\u7528\u6765\u5728\u8868\u8fbe\u5f0f\u7684\u4e0a\u65b9\u6dfb\u52a0\u91cd\u97f3\u6216\u9650\u5236\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt;\r\n&lt;mover accent=\"true\"&gt;\r\n  &lt;mrow&gt;\r\n    &lt;mi&gt; x &lt;\/mi&gt;\r\n    &lt;mo&gt; + &lt;\/mo&gt;\r\n    &lt;mi&gt; y &lt;\/mi&gt;\r\n    &lt;mo&gt; + &lt;\/mo&gt;\r\n    &lt;mi&gt; z &lt;\/mi&gt;\r\n  &lt;\/mrow&gt;\r\n  &lt;mo&gt; &amp;#x23DE; &lt;!--\u4e0a\u82b1\u62ec\u53f7--&gt; &lt;\/mo&gt;\r\n&lt;\/mover&gt; \r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u5f53\u524d\u6d4f\u89c8\u5668\u5b9e\u65f6\u6548\u679c\u662f\uff1a<\/span><math><mover accent=\"true\">  <mrow>    <mi> x <\/mi>    <mo> + <\/mo>    <mi> y <\/mi>    <mo> + <\/mo>    <mi> z <\/mi>  <\/mrow>  <mo> &#x23DE;<\/mo><\/mover> <\/math><\/div>\n<p>\u5728\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4e0b\u9762\u4f1a\u8fd9\u6837\u5448\u73b0\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_215129.png\" width=\"76\" height=\"25\" alt=\"mover\" class=\"alignnone size-medium\" align=\"absmiddle\" \/>\n<\/dd>\n<dt>&lt;msub&gt;<\/dt>\n<dd>MathML <code>&lt;msub&gt;<\/code>\u597d\u7406\u89e3\uff0c\u8868\u793a\u4e0b\u6807\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt;\r\n  &lt;msub&gt;\r\n    &lt;mi&gt;X&lt;\/mi&gt;\r\n    &lt;mn&gt;1&lt;\/mn&gt;\r\n  &lt;\/msub&gt;\r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u5f53\u524d\u6d4f\u89c8\u5668\u6548\u679c\uff1a<\/span><math>  <msub>    <mi>X<\/mi>    <mn>1<\/mn>  <\/msub><\/math><\/div>\n<\/dd>\n<dt>&lt;msubsup&gt;<\/dt>\n<dd>MathML <code>&lt;msubsup&gt;<\/code>\u5143\u7d20\u8868\u793a\u540c\u65f6\u4e0a\u6807\u548c\u4e0b\u6807\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math displaystyle=\"true\"&gt;   \r\n  &lt;msubsup&gt;\r\n    &lt;mo&gt; &amp;#x222B;&lt;!-- \u79ef\u5206 --&gt; &lt;\/mo&gt;\r\n    &lt;mn&gt; 0 &lt;\/mn&gt;\r\n    &lt;mn&gt; 1 &lt;\/mn&gt;\r\n  &lt;\/msubsup&gt;\r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u5f53\u524d\u6d4f\u89c8\u5668\u5b9e\u65f6\u6548\u679c\u662f\uff1a<\/span><math displaystyle=\"true\">  <msubsup>    <mo> &#x222B;<\/mo>    <mn> 0 <\/mn>    <mn> 1 <\/mn>  <\/msubsup><\/math><\/div>\n<p>\u5728\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4e0b\u9762\u4f1a\u8fd9\u6837\u5448\u73b0\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_215659.png\" width=\"27\" height=\"63\" alt=\"msubsup\" class=\"alignnone size-medium\" align=\"absmiddle\" \/>\n<\/dd>\n<dt>&lt;msup&gt;<\/dt>\n<dd>MathML <code>&lt;msup&gt;<\/code>\u8868\u793a\u4e0a\u6807\uff0c\u53c2\u89c1\u4e0b\u6807<code>&lt;msub&gt;<\/code><\/dd>\n<dt>&lt;munder&gt;<\/dt>\n<dd>MathML <code>&lt;munder&gt;<\/code>\u5143\u7d20\u548c<code>&lt;mover&gt;<\/code>\u5bf9\u7acb\uff0c\u8868\u793a\u5728\u8868\u8fbe\u5f0f\u4e0b\u65b9\u5f3a\u8c03\u6216\u8005\u9650\u5236\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math&gt;\r\n&lt;munder accent=\"true\"&gt;\r\n  &lt;mrow&gt;\r\n    &lt;mi&gt; x &lt;\/mi&gt;\r\n    &lt;mo&gt; + &lt;\/mo&gt;\r\n    &lt;mi&gt; y &lt;\/mi&gt;\r\n    &lt;mo&gt; + &lt;\/mo&gt;\r\n    &lt;mi&gt; z &lt;\/mi&gt;\r\n  &lt;\/mrow&gt;\r\n  &lt;mo&gt; &amp;#x23DF; &lt;!--\u4e0b\u82b1\u62ec\u53f7--&gt; &lt;\/mo&gt;\r\n&lt;\/munder&gt; \r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u5f53\u524d\u6d4f\u89c8\u5668\u5b9e\u65f6\u6548\u679c\u662f\uff1a<\/span><math><munder accent=\"true\">  <mrow>    <mi> x <\/mi>    <mo> + <\/mo>    <mi> y <\/mi>    <mo> + <\/mo>    <mi> z <\/mi>  <\/mrow>  <mo> &#x23DF;<\/mo><\/munder> <\/math><\/div>\n<p>\u5728\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4e0b\u9762\u4f1a\u8fd9\u6837\u5448\u73b0\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_220156.png\" width=\"69\" height=\"25\" alt=\"mover\" class=\"alignnone size-medium\" align=\"absmiddle\" \/><\/dd>\n<dt>&lt;munderover&gt;<\/dt>\n<dd>MathML <code>&lt;munderover&gt;<\/code>\u5143\u7d20\u8868\u793a\u540c\u65f6\u51fa\u73b0\u5728\u4e0a\u9762\u548c\u4e0b\u9762\u3002\u793a\u610f\uff1a<\/p>\n<pre>&lt;math displaystyle=\"true\"&gt; \r\n  &lt;munderover &gt;\r\n    &lt;mo&gt; &amp;#x222B; &lt;!--\u79ef\u5206--&gt; &lt;\/mo&gt;\r\n    &lt;mn&gt; 0 &lt;\/mn&gt;\r\n    &lt;mi&gt; &amp;#x221E; &lt;!--\u65e0\u7a77--&gt; &lt;\/mi&gt;\r\n  &lt;\/munderover&gt;\r\n&lt;\/math&gt;<\/pre>\n<div class=\"div-p-hidden\"><span>\u5f53\u524d\u6d4f\u89c8\u5668\u5b9e\u65f6\u6548\u679c\u662f\uff1a<\/span><math displaystyle=\"true\">  <munderover >    <mo> &#x222B; <\/mo>    <mn> 0 <\/mn>    <mi> &#x221E; <\/mi>  <\/munderover><\/math><\/div>\n<p>\u5728\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4e0b\u9762\u4f1a\u8fd9\u6837\u5448\u73b0\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_220510.png\" width=\"21\" height=\"71\" alt=\"munderover\" class=\"alignnone size-medium\" align=\"absmiddle\" \/>\n<\/dd>\n<div style=\"font-family:STHeiti, SimHei\"><strong>\u8868\u683c\u6570\u5b66<\/strong><\/div>\n<dt>&lt;mlabeledtr&gt;<\/dt>\n<dd>MathML <code>&lt;mlabeledtr&gt;<\/code>\u5143\u7d20\u7528\u4e8e\u8868\u793a\u884c\u5185label\u6807\u7b7e\uff0c\u8981\u4e48\u5728\u5de6\u4fa7\u8981\u4e48\u5728\u53f3\u4fa7\uff08\u7531<code>&lt;mtable&gt;<\/code>\u5143\u7d20\u4e0a\u7684<code>side<\/code>\u5c5e\u6027\u51b3\u5b9a\uff09\u3002 <code>&lt;mlabeledtr&gt;<\/code>\u7684\u5b50\u5143\u7d20\u5fc5\u987b\u662f<code>&lt;mtd&gt;<\/code>\u5143\u7d20\u3002 \u7b2c\u4e00\u4e2a\u5b50\u8282\u70b9\u662flabel\u6807\u7b7e\uff0c\u800c\u6240\u6709\u5176\u4ed6\u5b50\u8282\u70b9\u8868\u793a\u884c\u5185\u5bb9\uff0c\u5e76\u4e14\u4e0e<code>&lt;mtr&gt;<\/code>\u5143\u7d20\u7684\u5b50\u8282\u70b9\u76f8\u540c\u3002\u6839\u636e\u6211\u5728Firefox\u6d4f\u89c8\u5668\u4e0b\u7684\u6d4b\u8bd5\uff0c\u5e94\u5f53\u4f5c\u4e3alabel\u6807\u7b7e\u7684\u7b2c\u4e00\u4e2a\u5b50\u8282\u70b9\u5e76\u672a\u663e\u793a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_221718.png\" width=\"238\" height=\"386\" alt=\"\u6807\u7b7e\u4e3a\u663e\u793a\" class=\"alignnone size-medium\" \/><\/dd>\n<dt>&lt;mtable&gt;<\/dt>\n<dd>MathML <code>&lt;mtable&gt;<\/code>\u5143\u7d20\u53ef\u4ee5\u7406\u89e3\u4e3aHTML\u5c4a\u7684<code>&lt;table&gt;<\/code>\u5143\u7d20\uff0c\u867d\u7136\u5c5e\u6027\u51fa\u5165\u8f83\u5927\uff0c\u4f46\u6392\u7248\u5e03\u5c40\u8868\u73b0\u5f88\u7c7b\u4f3c\u3002<\/dd>\n<dt>&lt;mtd&gt;<\/dt>\n<dd>MathML <code>&lt;maction&gt;<\/code>\u5143\u7d20\u53ef\u4ee5\u7406\u89e3\u4e3aHTML\u5c4a\u7684<code>&lt;td&gt;<\/code>\u5143\u7d20\uff0c\u8868\u793a\u5355\u5143\u683c\uff0c\u4e24\u8005\u6392\u7248\u6548\u679c\u5f88\u7c7b\u4f3c\u3002<\/dd>\n<dt>&lt;mtr&gt;<\/dt>\n<dd>MathML <code>&lt;maction&gt;<\/code>\u5143\u7d20\u53ef\u4ee5\u7406\u89e3\u4e3aHTML\u5c4a\u7684<code>&lt;tr&gt;<\/code>\u5143\u7d20\uff0c\u8868\u793a\u8868\u683c\u884c\uff0c\u4e24\u8005\u6392\u7248\u5e03\u5c40\u6548\u679c\u5f88\u7c7b\u4f3c\u3002<\/dd>\n<div style=\"font-family:STHeiti, SimHei\"><strong>\u672a\u5206\u7c7b\u5143\u7d20<\/strong><\/div>\n<dt>&lt;maction&gt;<\/dt>\n<dd>MathML <code>&lt;maction&gt;<\/code>\u5143\u7d20\u53ef\u4ee5\u6dfb\u52a0\u4ea4\u4e92\u884c\u4e3a\uff0c\u4f8b\u5982\u5c55\u73b0\u7684\u662f\u8868\u8fbe\u5f0f\uff0c\u70b9\u51fb\u4e00\u4e0b\u51fa\u73b0\u7684\u662f\u8868\u8fbe\u5f0f\u8ba1\u7b97\u7ed3\u679c\u3002\u793a\u610f\u4e00\u4e2a1+1=2\u7684\u6548\u679c\uff1a<\/p>\n<pre>&lt;math&gt;\r\n&lt;maction actiontype=\"toggle\"&gt;\r\n  &lt;mrow&gt;\r\n    &lt;mn&gt;1&lt;\/mn&gt;\r\n    &lt;mo&gt;+&lt;\/mo&gt;\r\n    &lt;mn&gt;1&lt;\/mn&gt;\r\n  &lt;\/mrow&gt;\r\n  &lt;mrow&gt;\r\n    &lt;mo&gt;=&lt;\/mo&gt;\r\n    &lt;mn&gt;2&lt;\/mn&gt;\r\n  &lt;\/mrow&gt; \r\n&lt;\/maction&gt;\r\n&lt;\/math&gt;<\/pre>\n<p>\u6548\u679c\u5982\u4e0bGIF\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/1add1.gif\" width=\"164\" height=\"52\" alt=\"1+1=2\" class=\"alignnone size-medium\" \/>\n<\/dd>\n<h4>2. \u8bed\u4e49\u6ce8\u91ca<\/h4>\n<p>\u5728MathML\u4e2d\uff0c\u6709\u4e24\u79cd\u6807\u8bb0\u6570\u5b66\u7684\u65b9\u6cd5\uff1aPresentation MathML\u7528\u4e8e\u63a7\u5236\u6570\u5b66\u65b9\u7a0b\u6216\u8868\u8fbe\u5f0f\u7684\u5e03\u5c40\uff0c\u4e5f\u5c31\u662f\u7528\u6237\u770b\u5230\u7684\u5916\u89c2\uff08\u4e0a\u9762\u4ecb\u7ecd\u7684\u90e8\u5206\uff09\uff0c\u800cContent MathML\u7528\u4e8e\u4f7f\u6570\u5b66\u65b9\u7a0b\u6216\u8868\u8fbe\u5f0f\u66f4\u8bed\u4e49\u5316\uff0c\u4fbf\u4e8e\u8ba1\u7b97\u673a\u7406\u89e3\u3002 MathML\u5143\u7d20<code>&lt;semantics&gt;<\/code>\uff0c<code>&lt;annotation&gt;<\/code>\u548c<code>&lt;annotation-xml&gt;<\/code>\u7528\u4e8e\u8054\u5408\u5c55\u793a\u548c\u5185\u5bb9\u6807\u8bb0\uff0c\u4ee5\u53ca\u63d0\u4f9b\u6570\u5b66\u8868\u8fbe\u5f0f\u7684\u5e03\u5c40\u4fe1\u606f\u548c\u8bed\u4e49\u3002<\/p>\n<dt>&lt;annotation&gt;<\/dt>\n<dd>MathML <code>&lt;annotation&gt;<\/code>\u8868\u793a\u6ce8\u89e3\u4e0e\u8bf4\u660e\u3002<\/dd>\n<dt>&lt;annotation-xml&gt;<\/dt>\n<dd>MathML <code>&lt;annotation-xml&gt;<\/code>\u6307\u660e\u51fd\u6570\u6216\u8868\u8fbe\u5f0f\u7ed3\u6784\u3002<\/dd>\n<dt>&lt;semantics&gt;<\/dt>\n<dd>MathML <code>&lt;semantics&gt;<\/code>\u8868\u793a\u91cc\u9762\u542b\u6709\u8bed\u4e49\u5316\u4fe1\u606f\u3002<\/dd>\n<p>\u4e0a\u97623\u5143\u7d20\u770b\u4e0b\u9762\u4e00\u4e2a\u6848\u4f8b\u5c31\u80fd\u77e5\u9053\u5927\u6982\u4f5c\u7528\u4e86\uff1a<\/p>\n<pre>&lt;math&gt;\r\n  &lt;semantics&gt;\r\n    &lt;!-- Presentation MathML --&gt;\r\n    &lt;mrow&gt;\r\n      &lt;msup&gt;\r\n        &lt;mi&gt;x&lt;\/mi&gt;\r\n        &lt;mn&gt;2&lt;\/mn&gt;\r\n      &lt;\/msup&gt;\r\n      &lt;mo&gt;+&lt;\/mo&gt;\r\n      &lt;mi&gt;y&lt;\/mi&gt;\r\n    &lt;\/mrow&gt;\r\n    &lt;!-- Content MathML --&gt;\r\n    &lt;annotation-xml encoding=\"MathML-Content\"&gt;\r\n      &lt;apply&gt;\r\n        &lt;plus\/&gt;\r\n        &lt;apply&gt;\r\n          &lt;power\/&gt;\r\n          &lt;ci&gt;x&lt;\/ci&gt;\r\n          &lt;cn type=\"integer\"&gt;2&lt;\/cn&gt;\r\n        &lt;\/apply&gt;\r\n        &lt;ci&gt;y&lt;\/ci&gt;\r\n      &lt;\/apply&gt;\r\n    &lt;\/annotation-xml&gt;\r\n    &lt;!-- \u56fe\u50cf\u6ce8\u89e3 --&gt;\r\n    &lt;annotation encoding=\"image\/png\" src=\"some\/path\/formula.png\"\/&gt;\r\n    &lt;!-- TeX\u6ce8\u89e3 --&gt;\r\n    &lt;annotation encoding=\"application\/x-tex\"&gt;\r\n      x^{2} + y \r\n    &lt;\/annotation&gt; \r\n  &lt;\/semantics&gt;\r\n&lt;\/math&gt;<\/pre>\n<h4>\u5176\u4ed6<\/h4>\n<ul>\n<li>\u53ef\u4ee5\u770b\u5230\u90fd\u4ee5MathML\u6807\u8bb0\u90fd\u662f\u5b57\u6bcd<code>m<\/code>\u5f00\u5934\u3002<\/li>\n<li>\u4e0a\u9762\u6240\u6709\u5c55\u793a\u7684MathML\u4ee3\u7801\u6548\u679c\u90fd\u53ef\u4ee5\u5728\u8fd9\u4e2a\u9875\u9762\u770b\u5230\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/201810\/mathml.html\" rel=\"noopener\" target=\"_blank\">MathML\u793a\u610fdemo<\/a><\/li>\n<\/ul>\n<h3>\u4e8c\u3001\u6d4f\u89c8\u5668\u7684\u517c\u5bb9\u5904\u7406<\/h3>\n<p>\u9996\u5148\u770b\u4e0b\u517c\u5bb9\u6027\uff0cChrome\u6d4f\u89c8\u5668\u5728\u7248\u672c24\u7684\u65f6\u5019\u66fe\u7ecf\u6619\u82b1\u4e00\u73b0\u652f\u6301\u4e86\u4e0b\uff0c\u4e0d\u8fc7\u5f88\u5feb\u5c31\u53d6\u6d88\u4e86\u652f\u6301\uff0c\u636e\u8bf4\u662f\u51fa\u4e8e\u5b89\u5168\u8003\u8651\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_224947.png\" width=\"573\" height=\"383\" alt=\"MathML\u517c\u5bb9\u6027\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u636e\u8bf4IE\u6d4f\u89c8\u5668\u53ef\u4ee5\u5b89\u88c5MathPlayer\u63d2\u4ef6\u652f\u6301\u4e0b\uff0c\u4e0d\u8fc7\u6211\u4e2a\u4eba\u89c9\u5f97\u6700\u7ec8\u6548\u679c\u5c14\u5c14\u3002<\/p>\n<p>\u81f3\u4e8eChrome\u6d4f\u89c8\u5668\uff0c\u6211\u67e5\u627e\u4e86\u4e0b\uff0c\u6709\u4e2a\u540d\u53ebmathml.css\u7684\u9879\u76ee\uff1a<a href=\"https:\/\/github.com\/fred-wang\/mathml.css\" rel=\"noopener nofollow\" target=\"_blank\">https:\/\/github.com\/fred-wang\/mathml.css<\/a><\/p>\n<p>\u9488\u5bf9Chrome\u8fd9\u7c7b\u4e0d\u652f\u6301\u7684\u6d4f\u89c8\u5668\u4f7f\u7528CSS\u8fdb\u884c\u4e86\u516c\u5f0f\u5e03\u5c40\u7684\u6a21\u62df\u3002\u4f7f\u7528\u65b9\u6cd5\u53ef\u4ee5\u662f\u76f4\u63a5\u5f15\u5165\u4e0b\u9762JS\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;script src=\"\/\/fred-wang.github.io\/mathml.css\/mspace.js\"&gt;&lt;\/script&gt;<\/pre>\n<p>\u8fd9\u4e2amspace.js\u4f1a\u68c0\u6d4b\u5f53\u524d\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301MathML\uff0c\u5982\u679c\u4e0d\u652f\u6301\uff0c\u5c31\u4f1a\u52a0\u8f7dmathml.css\u6587\u4ef6\u505a\u517c\u5bb9\uff0c\u4f46\u4e5f\u53ea\u662f\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u7684\u517c\u5bb9\uff0c\u6839\u636e\u6211\u7684\u5b9e\u9645\u4f7f\u7528\u6d4b\u8bc4\uff0c\u5f88\u591a\u6807\u7b7e\u548c\u5c5e\u6027\u529f\u80fd\u5e76\u4e0d\u652f\u6301\uff0c\u7136\u540e\uff0c\u6700\u7ec8\u5448\u73b0\u7684\u6392\u7248\u6548\u679c\u548c\u539f\u672c\u652f\u6301\u7684\u6d4f\u89c8\u5668\uff08\u5982Firefox\uff09\u76f8\u5dee\u751a\u8fdc\uff0c\u53ea\u80fd\u8bf4\u51d1\u5408\u4f7f\u7528\u3002<\/p>\n<p><strong>\u8865\u5145\u4e8e2020-03-13<\/strong><\/p>\n<p>\u5916\u9762\u7684\u4e16\u754c\u603b\u6709\u4e0d\u786e\u5b9a\u6027\uff0c\u4e8e\u662f\u6211\u628a\u4e0a\u9762\u9879\u76eedemo\u81ea\u5df1\u670d\u52a1\u5668\u4e0a\u4e5f\u8fc1\u79fb\u4e86\u4e00\u4efd\uff0c\u987a\u4fbf\u4f18\u5316\u4e86\u4e0b\u663e\u793a\u7684\u5b57\u4f53\uff0c\u4e3b\u8981\u9488\u5bf9Chrome\u6d4f\u89c8\u5668\u663e\u793a\u3002<\/p>\n<p><a href=\"https:\/\/www.zhangxinxu.com\/study\/202003\/math.html\" rel=\"noopener\" target=\"_blank\">mathml.css\u6548\u679c\u7684demo\u6f14\u793a<\/a><\/p>\n<p>\u5b57\u4f53\u8bbe\u7f6e\uff1a<\/p>\n<pre>math {\r\n    font-family: Cambria Math, Latin Modern Math;\r\n}<\/pre>\n<p>Cambria Math\u662fWindows\u7cfb\u7edf\uff0cLatin Modern Math\u662fmacOS\u7cfb\u7edf\u3002<\/p>\n<h3>\u4e09\u3001\u5728\u7ebf\u751f\u6210MathML\u7684\u5de5\u5177\u4ecb\u7ecd<\/h3>\n<p>\u4ece\u7b2c\u4e00\u6bb5\u7684\u4ecb\u7ecd\u5c31\u53ef\u4ee5\u770b\u51faMathML\u975e\u5e38\u590d\u6742\uff0c\u662f\u4e2a\u5b8c\u6574\u7684XML\u8bed\u8a00\u4f53\u7cfb\uff0c\u5176\u4e2d\u8fd8\u6709\u832b\u832b\u591a\u7684XML\u5c5e\u6027\u8fd8\u6ca1\u4ecb\u7ecd\uff0c\u7531\u4e8e\u5bf9\u4e8e\u590d\u6742\u516c\u5f0f\uff0c\u6211\u4eec\u60f3\u8981\u5b8c\u5168\u624b\u5199\u51fa\u6765\uff0c\u5475\u5475\uff0c\u4f30\u8ba1\u8981\u5e9f\u6389\u5927\u534a\u7684\u8840\u6761\u3002<\/p>\n<p>\u597d\u5728\u6709\u73b0\u6210\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u76f4\u63a5\u751f\u6210MathML\u4ee3\u7801\u3002\u7ecf\u8fc7\u81ea\u5df1\u4e00\u756a\u5b9e\u8df5\uff0c\u53d1\u73b0\u4e0b\u9762\u8fd9\u4e2a\u5de5\u5177\u662f\u6781\u597d\u7684\uff01<\/p>\n<p><a href=\"https:\/\/webdemo.myscript.com\/views\/main\/math.html\" rel=\"noopener nofollow\" target=\"_blank\" class=\"a_link\">\u624b\u5199\u516c\u5f0f\u81ea\u52a8\u53d8MathML<\/a><\/p>\n<p>\u4f8b\u5982\uff0c\u6211\u5728\u753b\u5e03\u4e2d\u5199\u4e2ax<sup>2<\/sup>+y<sup>2<\/sup>=z<sup>2<\/sup>\uff0c\u7ed3\u679c\u53f3\u4e0a\u89d2MathML\u4ee3\u7801\u5c31\u51fa\u6765\u4e86\uff0c\u5b9e\u5728\u592a\u725b\u4e86\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/2018-10-24_230304.png\" width=\"521\" height=\"272\" alt=\"\u624b\u5199\u516c\u5f0f\u81ea\u52a8\u8bc6\u522b\u4e3aMathML\u8bed\u8a00\" class=\"alignnone size-medium\" \/><\/p>\n<h3>\u56db\u3001\u5c0f\u4f17\u8bed\u8a00\uff0c\u603b\u4f1a\u6709\u7528\u7684<\/h3>\n<p>MathML\u8fd9\u4e48\u8bed\u8a00\uff0c\u867d\u7136\u5c0f\u4f17\uff0c\u4f46\u603b\u5f52\u6709\u7528\u7684\uff0c\u4e3e\u4f8b\u6765\u8bf4\uff0c\u6211\u4e4b\u524d\u5199\u4e86\u5f88\u591a\u52a8\u753b\u76f8\u5173\u7684\u6587\u7ae0\uff0c\u4f8b\u5982\u629b\u7269\u7ebf\u8fd0\u52a8\uff0c\u77e9\u9635\u53d8\u6362\u4ecb\u7ecd\u7b49\uff0c\u90fd\u9700\u8981\u7528\u5230\u6570\u5b66\u516c\u5f0f\uff0c\u5982\u679c\u5f97\u5230\u7cbe\u7f8e\u7684\u81ea\u5df1\u60f3\u8981\u7684\u516c\u5f0f\u4ee3\u7801\u5462\uff1f\u7ecf\u8fc7\u8fd9\u51e0\u5929\u5b66\u4e60\uff0c\u6211\u5c31\u77e5\u9053\u8be5\u600e\u4e48\u73a9\u4e86\u3002<\/p>\n<p>\u5148\u6253\u5f00\u4e0a\u9762\u4ecb\u7ecd\u7684\u5728\u7ebf\u751f\u6210MathML\u7684\u5de5\u5177\uff0c\u624b\u5199\u6570\u5b66\u516c\u5f0f\uff0c\u7136\u540e\u628a\u751f\u6210\u7684MathML\u4ee3\u7801\u5728Firefox\u6d4f\u89c8\u5668\u4e2d\u663e\u793a\uff0c\u7136\u540e\u622a\u56fe\uff0c\u4e00\u4e2a\u7cbe\u81f4\u7684\u6570\u5b66\u516c\u5f0f\u6548\u679c\u56fe\u5c31\u51fa\u6765\u4e86\uff01<\/p>\n<p>\u8981\u662f\u6ca1\u6709\u5bf9MathML\u7684\u5b66\u4e60\u548c\u7814\u7a76\uff0c\u80af\u5b9a\u4e0d\u4f1a\u77e5\u9053\u539f\u6765\u8fd8\u53ef\u4ee5\u8fd9\u4e48\u73a9\uff0c\u5bf9\u5427\uff1f<\/p>\n<p>\u5b66\u4e60\u5462\uff0c\u4e0d\u8981\u529f\u5229\u5fc3\u592a\u5f3a\uff0c\u5c31\u7b97\u5f53\u4e0b\u770b\u4e0d\u5230\u6548\u76ca\uff0c\u4f46\u5728\u5c06\u6765\u67d0\u4e00\u5929\uff0c\u603b\u4f1a\u7ed9\u4f60\u5e26\u6765\u96ea\u4e2d\u9001\u70ad\u822c\u7684\u5e2e\u52a9\u7684\u3002<\/p>\n<p>\u611f\u8c22\u9605\u8bfb\uff0c\u6b22\u8fce\u4ea4\u6d41\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f603.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<p><script src=\"\/\/cdn.zhangxinxu.com\/study\/201810\/mspace.js\"><\/script><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u4f1a\u7ecf\u5e38\u66f4\u65b0\u77e5\u8bc6\u70b9\u4ee5\u53ca\u4fee\u6b63\u4e00\u4e9b\u9519\u8bef\uff0c\u56e0\u6b64\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u539f\u51fa\u5904\uff0c\u65b9\u4fbf\u6eaf\u6e90\uff0c\u907f\u514d\u9648\u65e7\u9519\u8bef\u77e5\u8bc6\u7684\u8bef\u5bfc\uff0c\u540c\u65f6\u6709\u66f4\u597d\u7684\u9605\u8bfb\u4f53\u9a8c\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8108\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=8108<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201810\/mathml-thumb2.jpg\" width=\"161\" height=\"100\" alt=\"MathML\u5934\u56fe\u7f29\u7565\u56fe\" class=\"alignright size-medium\" \/><\/p>\n<p>MathML\u6307\u201c\u6570\u5b66\u6807\u8bb0\u8bed\u8a00\u201d\uff0c\u662fXML\u8bed\u8a00\u7684\u4e00\u4e2a\u5b50\u96c6\uff0c\u7528\u6765\u5728web\u7f51\u9875\uff0c\u751a\u81f3\u90e8\u5206\u8f6f\u4ef6\u4e2d\u663e\u793a\u6570\u5b66\u516c\u5f0f\u3002<\/p>\n<p>\u7b80\u8a00\u4e4b\uff0c\u5c31\u662f\u4f7f\u7528\u7279\u6b8a\u7684\u7c7b\u4f3cHTML\u7684\u6807\u8bb0\u5728\u7f51\u9875\u4e2d\u663e\u793a\u6570\u5b66\u516c\u5f0f\u3002\u56e0\u4e3a\u6709\u4e9b\u6570\u5b66\u516c\u5f0f\u5f88\u590d\u6742\uff0c\u666e\u901aHTML\u6839\u672c\u6ca1\u6cd5\u9a7e\u9a6d\uff0c\u7136\u800cMathML\u672c\u8eab\u4e5f\u5f88\u590d\u6742\uff0c\u771f\u8981\u624b\u5199\u90a3\u771f\u8981\u4eba\u547d\u4e86\uff0c\u597d\u5728\u6709\u5f88\u68d2\u7684\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u2026\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1097],"tags":[9,52,684],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/8108"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=8108"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/8108\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=8108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=8108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=8108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}