O elemento de MathML <mglyph>
é usado para apresentar símbolos sem carateres de Unicode disponíveis. Pode ser usado dentro de token elements.
Atributos
- alt
- Este atributo define o texto alternativo que descreve a imagem. Os utilizadores verão isto apresentado se o URL da imagem estiver errado, se a imagem não estiver num dos formatos suportados, ou até a imagem ser descarregada.
- class, id, style
- Para uso com stylesheets.
- height
- A altura da imagem.
- href
- Usado para criar uma hiperligação para um URI.
- mathbackground
- A cor de fundo (se a imagem tem transparência). Pode usar
#rgb
,#rrggbb
e nomes de cores de HTML. - src
- O URL da imagem.
- valign
- Indica o alinhamento vertical com respeito à linha de base atual.
- width
- A largura da imagem.
Exemplos
<math>
<mi><mglyph src="my-glyph.png" alt="my glyph"/></mi>
</math>
Especificações
Especificação | Estado | Comentário |
---|---|---|
MathML 3.0 The definition of 'mglyph' in that specification. |
Recommendation | Especificação atual |
MathML 2.0 The definition of 'mglyph' in that specification. |
Recommendation | Especificação inicial |
Compatibilidade
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.