{"id":255362,"date":"2022-10-28T09:24:20","date_gmt":"2022-10-28T01:24:20","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=255362"},"modified":"2022-10-20T12:24:55","modified_gmt":"2022-10-20T04:24:55","slug":"to-html5-mathml","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/to-html5-mathml.html","title":{"rendered":"HTML5 MathML\u7b80\u4ecb"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nHTML5 \u53ef\u4ee5\u5728\u6587\u6863\u4e2d\u4f7f\u7528 MathML \u5143\u7d20\uff0c\u5bf9\u5e94\u7684\u6807\u7b7e\u662f <math>...<\/math> \u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

MathML \u662f\u6570\u5b66\u6807\u8bb0\u8bed\u8a00\uff0c\u662f\u4e00\u79cd\u57fa\u4e8eXML\uff08\u6807\u51c6\u901a\u7528\u6807\u8bb0\u8bed\u8a00\u7684\u5b50\u96c6\uff09\u7684\u6807\u51c6\uff0c\u7528\u6765\u5728\u4e92\u8054\u7f51\u4e0a\u4e66\u5199\u6570\u5b66\u7b26\u53f7\u548c\u516c\u5f0f\u7684\u7f6e\u6807\u8bed\u8a00\u3002<\/p>\n

\u6ce8\u610f\uff1a\u76ee\u524d\u53ea\u6709 Firefox \u6216 Safari \u6d4f\u89c8\u5668\u652f\u6301\uff0c\u5927\u90e8\u5206\u6d4f\u89c8\u5668\u8fd8\u4e0d\u652f\u6301 MathML \u6807\u7b7e\uff0c\u5982\u679c\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u8be5\u6807\u7b7e\uff0c\u53ef\u4ee5\u4f7f\u7528\u6700\u65b0\u7248\u7684 Firefox \u6216 Safari \u6d4f\u89c8\u5668\u67e5\u770b\u3002<\/p>\n

MathML \u5b9e\u4f8b<\/strong><\/div>\n

\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684 MathML \u5b9e\u4f8b\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\n<!DOCTYPE html>\r\n<html>\r\n   <head>\r\n      <meta charset=\"UTF-8\">\r\n      <title>\u83dc\u9e1f\u6559\u7a0b(runoob.com)<\/title>\r\n   <\/head>       \r\n   <body>       \r\n      <math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">               \r\n         <mrow>\r\n            <msup><mi>a<\/mi><mn>2<\/mn><\/msup>\r\n            <mo>+<\/mo>                               \r\n            <msup><mi>b<\/mi><mn>2<\/mn><\/msup>\r\n            <mo>=<\/mo>                               \r\n            <msup><mi>c<\/mi><mn>2<\/mn><\/msup>\r\n         <\/mrow>                       \r\n      <\/math>               \r\n   <\/body>\r\n<\/html><\/pre>\n

\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6765\u652f\u6301\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

<!DOCTYPE html>\r\n<html>\r\n   <head>\r\n      <meta charset=\"UTF-8\">\r\n      <title>\u83dc\u9e1f\u6559\u7a0b(runoob.com)<\/title>\r\n      <script type=\"text\/javascript\" src=\"https:\/\/static.runoob.com\/assets\/js\/mathml\/mspace.js\"><\/script>\r\n   <\/head>     \r\n   <body>      \r\n      <math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">               \r\n         <mrow>\r\n            <msup><mi>a<\/mi><mn>2<\/mn><\/msup>\r\n            <mo>+<\/mo>                               \r\n            <msup><mi>b<\/mi><mn>2<\/mn><\/msup>\r\n            <mo>=<\/mo>                               \r\n            <msup><mi>c<\/mi><mn>2<\/mn><\/msup>\r\n         <\/mrow>                       \r\n      <\/math>              \r\n   <\/body>\r\n<\/html><\/pre>\n

\u8fd0\u884c\u7ed3\u679c\u56fe\uff0c\u5982\u4e0b\u6240\u793a\uff1a
\n\"\"
\n\u4ee5\u4e0b\u5b9e\u4f8b\u6dfb\u52a0\u4e86\u4e00\u4e9b\u8fd0\u7b97\u7b26\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

<!DOCTYPE html>\r\n<html>\r\n   <head>\r\n      <meta charset=\"UTF-8\">\r\n      <title>\u83dc\u9e1f\u6559\u7a0b(runoob.com)<\/title>\r\n   <\/head>       \r\n   <body>       \r\n      <math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">               \r\n         <mrow>                \r\n            <mrow>                               \r\n               <msup>\r\n                  <mi>x<\/mi>\r\n                  <mn>2<\/mn>\r\n               <\/msup>                                      \r\n               <mo>+<\/mo>                                       \r\n               <mrow>\r\n                  <mn>4<\/mn>\r\n                  <mo><\/mo>\r\n                  <mi>x<\/mi>\r\n               <\/mrow>                                       \r\n               <mo>+<\/mo>\r\n               <mn>4<\/mn>                                    \r\n            <\/mrow>                               \r\n            <mo>=<\/mo>\r\n            <mn>0<\/mn>                                 \r\n         <\/mrow>\r\n      <\/math>               \r\n   <\/body>\r\n<\/html><\/pre>\n

\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6765\u652f\u6301\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

<!DOCTYPE html>\r\n<html>\r\n   <head>\r\n      <meta charset=\"UTF-8\">\r\n      <title>\u83dc\u9e1f\u6559\u7a0b(runoob.com)<\/title>\r\n      <script type=\"text\/javascript\" src=\"https:\/\/static.runoob.com\/assets\/js\/mathml\/mspace.js\"><\/script>\r\n   <\/head>       \r\n   <body>       \r\n      <math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">              \r\n         <mrow>                \r\n           <mrow>                               \r\n               <msup>\r\n                  <mi>x<\/mi>\r\n                  <mn>2<\/mn>\r\n               <\/msup>                                       \r\n               <mo>+<\/mo>                                       \r\n               <mrow>\r\n                  <mn>4<\/mn>\r\n                  <mi>x<\/mi>\r\n               <\/mrow>                                      \r\n               <mo>+<\/mo>\r\n               <mn>4<\/mn>                                       \r\n            <\/mrow>                               \r\n            <mo>=<\/mo>\r\n            <mn>0<\/mn>                                 \r\n         <\/mrow>\r\n      <\/math>               \r\n   <\/body>\r\n<\/html><\/pre>\n

\u8fd0\u884c\u7ed3\u679c\u56fe\uff0c\u5982\u4e0b\u6240\u793a\uff1a
\n\"\"
\n\u4ee5\u4e0b\u5b9e\u4f8b\u662f\u4e00\u4e2a 2\u00d72 \u77e9\u9635\uff0c\u53ef\u4ee5\u5728 Firefox 3.5 \u4ee5\u4e0a\u7248\u672c\u67e5\u770b\u5230\u6548\u679c\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

<!DOCTYPE html>\r\n<html>\r\n   <head>\r\n      <meta charset=\"UTF-8\">\r\n      <title>\u83dc\u9e1f\u6559\u7a0b(runoob.com)<\/title>\r\n   <\/head>       \r\n   <body>\r\n      <math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">               \r\n         <mrow>\r\n            <mi>A<\/mi>\r\n            <mo>=<\/mo>                       \r\n            <mfenced open=\"[\" close=\"]\">                       \r\n               <mtable>\r\n                  <mtr>\r\n                     <mtd><mi>x<\/mi><\/mtd>\r\n                     <mtd><mi>y<\/mi><\/mtd>\r\n                  <\/mtr>                                       \r\n                  <mtr>\r\n                     <mtd><mi>z<\/mi><\/mtd>\r\n                     <mtd><mi>w<\/mi><\/mtd>\r\n                  <\/mtr>\r\n               <\/mtable>               \r\n            <\/mfenced>\r\n         <\/mrow>\r\n      <\/math>     \r\n   <\/body>\r\n<\/html><\/pre>\n

\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6765\u652f\u6301\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

<!DOCTYPE html>\r\n<html>\r\n   <head>\r\n      <meta charset=\"UTF-8\">\r\n      <title>\u83dc\u9e1f\u6559\u7a0b(runoob.com)<\/title>\r\n      <script type=\"text\/javascript\" src=\"https:\/\/static.runoob.com\/assets\/js\/mathml\/mspace.js\"><\/script>\r\n   <\/head>\r\n       \r\n   <body>\r\n      <math xmlns=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\r\n               \r\n         <mrow>\r\n            <mi>A<\/mi>\r\n            <mo>=<\/mo>\r\n                       \r\n            <mfenced open=\"[\" close=\"]\">\r\n                       \r\n               <mtable>\r\n                  <mtr>\r\n                     <mtd><mi>x<\/mi><\/mtd>\r\n                     <mtd><mi>y<\/mi><\/mtd>\r\n                  <\/mtr>\r\n                                       \r\n                  <mtr>\r\n                     <mtd><mi>z<\/mi><\/mtd>\r\n                     <mtd><mi>w<\/mi><\/mtd>\r\n                  <\/mtr>\r\n               <\/mtable>\r\n               \r\n            <\/mfenced>\r\n         <\/mrow>\r\n      <\/math>\r\n     \r\n   <\/body>\r\n<\/html><\/pre>\n

\u8fd0\u884c\u7ed3\u679c\u56fe\uff0c\u5982\u4e0b\u6240\u793a\uff1a
\n\"\"<\/p>\n","protected":false},"excerpt":{"rendered":"

MathML \u662f\u6570\u5b66\u6807\u8bb0\u8bed\u8a00\uff0c\u662f\u4e00\u79cd\u57fa\u4e8eXML\uff08\u6807\u51c6\u901a\u7528\u6807\u8bb0\u8bed\u8a00\u7684\u5b50\u96c6\uff09\u7684\u6807\u51c6\uff0c\u7528\u6765\u5728\u4e92\u8054\u7f51\u4e0a\u4e66\u5199\u6570\u5b66\u7b26\u53f7\u548c\u516c […]<\/p>\n","protected":false},"author":1470,"featured_media":255364,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-255362","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/255362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1470"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=255362"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/255362\/revisions"}],"predecessor-version":[{"id":255512,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/255362\/revisions\/255512"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/255364"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=255362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=255362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=255362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}