scriptlevel

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

scriptlevel 全局属性设置 MathML 元素的数学深度。它允许覆盖用户代理样式表中定义的在 MathML 公式中自动计算字体大小的规则。

示例

html


  
    
    BASE
    
    SUBSCRIPT
    
    SUPERSCRIPT
  

语法

html
 
 
 

如果 是一个无符号整数(即移除了前缀符号的整数),则接受的值为:

将 math-depth 设置为值 。这将使元素的 font-size 与指定深度的元素的字体大小相同。

+

math-depth 设置为值 add()。这将使元素的 font-size 缩小 次。

-

math-depth 设置为值 add(-)。这将使元素的 font-size 放大 次。

规范

Specification
MathML Core
# dfn-scriptlevel

浏览器兼容性

参见