MathML - 乘法



可在 <mstack> 元素內使用 <msgroup> 對行進行分組,並可對 <mlongdiv> 元素相對於堆疊對齊方向進行定位。具有 shift 屬性的 <msgroup> 元素可用來建立簡單的乘法計算。

語法

以下是使用此標記的簡單語法 -

<msgroup> expression </msgroup>

引數

以下是此標記的所有引數說明 -

  • expression - 表示式。

屬性

以下是此標記的所有屬性說明 -

  • position - 指定組內各行相對於由包含 msgroup 控制的位置(根據其 position 和 shift 屬性)的水平位置。預設值為 0。

  • shift - 指定組內連續子項(行或組)的增量偏移。預設值為 0。

示例

<math xmlns = "http://www.w3.org/1998/Math/MathML">
   <mstack>
      <msgroup>
         <mn>123</mn>
         <msrow>
            <mo>×</mo>
            <mn>321</mn>
         </msrow>
      </msgroup>
      <msline/>
      
      <msgroup shift = "1">
         <mn>123</mn>
         <mn>246</mn>
         <mn>369</mn>
      </msgroup>
      <msline/>
      <mn>39483</mn>
   </mstack>
</math>

輸出

123 × 321 123 246 369 39483
廣告
© . All rights reserved.