該屬性保存該值以控製font-size。它像優先級屬性一樣工作,這意味著較高的優先級值具有較低的性能。這意味著腳本級別越高,font-size越小。此屬性僅被<mstyle>標記接受。
用法:
<element scriptlevel="number">
屬性值:
- number:該值用於定義font-size,其工作方式類似於優先級屬性,這意味著較高的優先級值具有較低的性能。
以下示例說明了HTML5 MathML中的腳本級別:
例:
HTML
<!DOCTYPE html>
<html>
<head>
<title>HTML5 MathML scriptlevel Attribute</title>
</head>
<body>
<center>
<h1 style="color:green">
GeeksforGeeks
</h1>
<h3>HTML5 MathML scriptlevel Attribute</h3>
<math>
<mstyle displaystyle="true"
mathcolor="purple"
scriptlevel="2">
<mrow>
<msubsup>
<mo>∑</mo>
<mn> i=1 </mn>
<mn> n </mn>
</msubsup>
<mo>+</mo>
<msub>
<mi>x</mi>
<mn>i</mn>
</msub>
<mo>=</mo>
<mn>?</mn>
</mrow>
</mstyle>
</math>
</center>
</body>
</html>
輸出:
支持的瀏覽器:下麵列出了HTML5 MathML腳本級別屬性支持的瀏覽器:
- Firefox
相關用法
- HTML5 MathMl scriptlevel屬性用法及代碼示例
- HTML5 MathML bevelled屬性用法及代碼示例
- HTML5 MathML href屬性用法及代碼示例
- HTML5 MathML framespacing屬性用法及代碼示例
- HTML5 MathML display屬性用法及代碼示例
- HTML5 MathML displaystyle屬性用法及代碼示例
- HTML5 MathML frame屬性用法及代碼示例
- HTML5 MathML height屬性用法及代碼示例
- HTML5 MathML rquote屬性用法及代碼示例
- HTML5 MathML lquote屬性用法及代碼示例
- HTML5 MathML id屬性用法及代碼示例
- HTML5 MathML close屬性用法及代碼示例
- HTML5 MathML lspace屬性用法及代碼示例
- HTML5 MathML mathbackground屬性用法及代碼示例
- HTML5 MathML denomalign屬性用法及代碼示例
- HTML5 MathML columnalign屬性用法及代碼示例
- HTML5 MathML dir屬性用法及代碼示例
- HTML5 MathML depth屬性用法及代碼示例
- HTML5 MathML columnspacing屬性用法及代碼示例
- HTML5 MathML align屬性用法及代碼示例
- HTML5 MathML actiontype屬性用法及代碼示例
- HTML5 MathML linethickness屬性用法及代碼示例
- HTML5 MathML largeop屬性用法及代碼示例
- HTML5 MathML maxsize屬性用法及代碼示例
注:本文由純淨天空篩選整理自skyridetim大神的英文原創作品 HTML5 MathMl scriptlevel Attribute。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。