-
Notifications
You must be signed in to change notification settings - Fork 8k
/
index.md
45 lines (31 loc) · 1.32 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: <msqrt>
slug: Web/MathML/Element/msqrt
---
{{MathMLRef()}}
MathML の `<msqrt>` 要素は平方根(根指数のついていない累乗根)を表示するために用いられます。 引数は一つだけで、構文は `<msqrt> base </msqrt>` となります。
## 属性
- class, id, style
- : [CSS](/ja/docs/CSS)を用いて修飾を行なう際に使われます。
- href
- : ハイパーリンクを設定する際に用いられます。
- mathbackground
- : 数式の背景色を指定するために使われます。`#rgb`、`#rrggbb`のような 16 進表現のほか、HTML で定められた[色キーワード](/ja/docs/Web/CSS/named-color)を用いることができます。
- mathcolor
- : 根号を含んだ数式の文字の色を指定するために使われます。`#rgb`、`#rrggbb`のような 16 進表現のほか、HTML で定められた[色キーワード](/ja/docs/Web/CSS/named-color)を用いることができます。
## 例
レンダリングのサンプル(画像): ![root-x](msqrt.png)
ブラウザのレンダリング結果: <math><msqrt><mi>x</mi></msqrt></math>
```html
<math>
<msqrt>
<mi>x</mi>
</msqrt>
</math>
```
## ブラウザーの互換性
{{Compat}}
## 仕様
{{Specifications}}
## 関連情報
- {{ MathMLElement("mroot") }} (Radical with an index)