0
点赞
收藏
分享

微信扫一扫

html5学习笔记16-MathML 数学标记语言,书写数学符号和公式的置标语言

灯火南山 2023-06-28 阅读 129
html

https://www.runoob.com/html/html5-mathml.html

<!DOCTYPE html>
<html>
   <head>
      <meta charset="UTF-8">
      <title>菜鸟教程(runoob.com)</title>
      <script type="text/javascript" src="https://static.runoob.com/assets/js/mathml/mspace.js"></script>
   </head>       
   <body>       
      <math xmlns="http://www.w3.org/1998/Math/MathML">               
         <mrow>
            <msup><mi>a</mi><mn>2</mn></msup>
            <mo>+</mo>                               
            <msup><mi>b</mi><mn>2</mn></msup>
            <mo>=</mo>                               
            <msup><mi>c</mi><mn>2</mn></msup>
         </mrow>                       
      </math>    
      
      以下为矩阵
      <math xmlns="http://www.w3.org/1998/Math/MathML">
          <mrow>
            <mi>A</mi>
            <mo>=</mo>                       
            <mfenced open="[" close="]">                       
               <mtable>
                  <mtr>
                     <mtd><mi>x</mi></mtd>
                     <mtd><mi>y</mi></mtd>
                  </mtr>                                       
                  <mtr>
                     <mtd><mi>z</mi></mtd>
                     <mtd><mi>w</mi></mtd>
                  </mtr>
               </mtable>               
            </mfenced>
         </mrow>
      </math>           
   </body>
</html>
举报

相关推荐

0 条评论