
- MathML 教程
- MathML - 首頁
- MathML - 概述
- MathML - 所有元素
- MathML - 基本元素
- MathML - 載體
- MathML - 包含
- MathML - 圍欄
- MathML - 分數
- MathML - 長除法
- MathML - 矩陣
- MathML - 乘法
- MathML - 上標
- MathML - 填充
- MathML - 虛設
- MathML - 根式
- MathML - 迴圈小數
- MathML - 樣式
- MathML - 下標
- MathML - 下標-上標
- MathML - 上標
- MathML - 下劃線
- MathML - 下劃線-上劃線
- MathML 符號
- MathML - 代數符號
- MathML - 微積分符號
- MathML - 省略號符號
- MathML - 函式符號
- MathML - 幾何符號
- MathML - 希臘字母
- MathML - 無形運算子
- MathML - 邏輯符號
- MathML - 集合符號
- MathML 有用資源
- MathML - 快速指南
- MathML - 有用資源
- MathML - 討論
MathML - 樣式
<mstyle> 標籤用於進行樣式更改,這些更改會影響其內容的呈現。
語法
以下是使用此標籤的簡單語法:
<mstyle> expression </mstyle>
引數
以下是此標籤所有引數的描述:
表示式 - 推斷的 mrow 元素。
屬性
以下是此標籤所有屬性的描述:
scriptlevel - 指定子元素的 scriptlevel。不帶符號時,將其設定為指定值;帶符號時,增加 ("+") 或減少 ("-") 當前值。
displaystyle - 指定 displaystyle。
scriptsizemultiplier - 指定要用於調整字型大小的乘數,以應對 scriptlevel 的變化。
scriptminsize - 指定由於 scriptlevel 更改而允許的最小字型大小。
infixlinebreakstyle - 指定用於中綴運算子的預設 linebreakstyle。
decimalpoint - 指定用於確定 <mstack> 和 <mtable> 列中對齊點的字元,當 "decimalpoint" 值用於指定對齊時。預設值為 '.'。
示例
示例 1:不使用 <mstyle> 標籤
<math xmlns = "http://www.w3.org/1998/Math/MathML"> <mrow> <mo maxsize = "100%"> ( </mo> <mfrac> <mi> a </mi> <mi> b </mi> </mfrac> <mo maxsize = "100%"> ) </mo> </mrow> </math>
輸出
示例 2:使用 <mstyle> 標籤
<math xmlns = "http://www.w3.org/1998/Math/MathML"> <mstyle maxsize = "100%"> <mrow> <mo> ( </mo> <mfrac> <mi> a </mi> <mi> b </mi> </mfrac> <mo> ) </mo> </mrow> </mstyle> </math>
輸出
廣告