aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/mathml/element/menclose/index.html
blob: 3a2e5b492c3b35a1d2f3e14d1c357cbbaa157acc (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
---
title: <menclose>
slug: Web/MathML/Element/menclose
tags:
  - MathML
  - MathML Reference
  - 'MathML:Element'
  - 'MathML:General Layout Schemata'
translation_of: Web/MathML/Element/menclose
---
<div>{{MathMLRef}}</div>

<p class="summary">Элемент MathML <code>&lt;menclose&gt;</code> отображает своё содержимое во вложенной нотации, указанной атрибутом <code>нотации</code>.</p>

<h2 id="Атрибуты">Атрибуты</h2>

<dl>
 <dt id="attr-class-id-style">class, id, style</dt>
 <dd>Используются с <a href="/ru/docs/CSS">таблицами стилей</a>.</dd>
 <dt id="attr-href">href</dt>
 <dd>Используется для установки гиперссылки на указанный URI.</dd>
 <dt id="attr-mathbackground">mathbackground</dt>
 <dd>Цвет фона. Вы можете использовать <code>#rgb</code>, <code>#rrggbb</code> и <a href="/ru/docs/CSS/color_value#Color_Keywords">HTML-имена цветов</a>.</dd>
 <dt id="attr-mathcolor">mathcolor</dt>
 <dd>Цвет текста. Вы можете использовать <code>#rgb</code>, <code>#rrggbb</code> и <a href="/ru/docs/CSS/color_value#Color_Keywords">HTML-имена цветов</a>.</dd>
 <dt id="attr-notation">notation</dt>
 <dd>Список нотаций, разделённых пробелами, применяемых к дочерним элементам. Изображённые символы могут перекрываться. Возможные значения:
 <table class="standard-table">
  <tbody>
   <tr>
    <th>Значение</th>
    <th>Пример рендеринга</th>
    <th>Рендеринг в вашем браузере</th>
    <th>Описание</th>
   </tr>
   <tr>
    <td><code>longdiv</code> (default)</td>
    <td><img alt="longdiv" src="/files/3167/default.png"></td>
    <td><math> <menclose notation="longdiv"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>длинный символ деления</td>
   </tr>
   <tr>
    <td><code>actuarial</code></td>
    <td><img alt="actuarial" src="/files/3168/actuarial.png"></td>
    <td><math> <menclose notation="actuarial"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td><a class="external" href="http://en.wikipedia.org/wiki/Actuarial_notation">актуарный символ</a></td>
   </tr>
   <tr>
    <td><code>radical</code></td>
    <td><img alt="radical" src="/files/3169/radical.png"></td>
    <td><math> <menclose notation="radical"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>символ квадратного корня</td>
   </tr>
   <tr>
    <td><code>box</code></td>
    <td><img alt="box" src="/files/3170/box.png"></td>
    <td><math> <menclose notation="box"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>прямоугольник</td>
   </tr>
   <tr>
    <td><code>roundedbox</code></td>
    <td><img alt="roundedbox" src="/files/3171/roundedbox.png"></td>
    <td><math> <menclose notation="roundedbox"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>прямоугольник с закруглёнными вершинами</td>
   </tr>
   <tr>
    <td><code>circle</code></td>
    <td><img alt="circle" src="/files/3172/circle.png"></td>
    <td><math> <menclose notation="circle"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>овал</td>
   </tr>
   <tr>
    <td><code>left</code></td>
    <td><img alt="left" src="/files/3173/left.png"></td>
    <td><math> <menclose notation="left"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>линия слева от содержимого</td>
   </tr>
   <tr>
    <td><code>right</code></td>
    <td><img alt="right" src="/files/3174/right.png"></td>
    <td><math> <menclose notation="right"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>линия справа от содержимого</td>
   </tr>
   <tr>
    <td><code>top</code></td>
    <td><img alt="top" src="/files/3175/top.png"></td>
    <td><math> <menclose notation="top"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>линия над содержимым</td>
   </tr>
   <tr>
    <td><code>bottom</code></td>
    <td><img alt="bottom" src="/files/3176/bottom.png"></td>
    <td><math> <menclose notation="bottom"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>линия под содержимым</td>
   </tr>
   <tr>
    <td><code>updiagonalstrike</code></td>
    <td><img alt="updiagonalstrike" src="/files/3177/updiagonalstrike.png"></td>
    <td><math> <menclose notation="updiagonalstrike"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>линия, перечёркивающая содержимое от левого низа до правого верха</td>
   </tr>
   <tr>
    <td><code>downdiagonalstrike</code></td>
    <td><img alt="downdiagonalstrike" src="/files/3178/downdiagonalstrike.png"></td>
    <td><math> <menclose notation="downdiagonalstrike"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>линия, перечёркивающая содержимое от левого верха до правого низа</td>
   </tr>
   <tr>
    <td><code>verticalstrike</code></td>
    <td><img alt="verticalstrike" src="/files/3179/verticalstrike.png"></td>
    <td><math> <menclose notation="verticalstrike"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>вертикальная линия, зачёркивающая содержимое</td>
   </tr>
   <tr>
    <td><code>horizontalstrike</code></td>
    <td><img alt="horizontalstrike" src="/files/3180/horizontalstrike.png"></td>
    <td><math> <menclose notation="horizontalstrike"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>горизонтальная линия, зачёркивающая содержимое</td>
   </tr>
   <tr>
    <td><code>madruwb</code></td>
    <td><img alt="madruwb" src="/files/3181/madruwb.png"></td>
    <td><math> <menclose notation="madruwb"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td><a class="external" href="http://en.wikipedia.org/wiki/Modern_Arabic_mathematical_notation#Arithmetic_and_algebra">Арабский символ факториала</a></td>
   </tr>
   <tr>
    <td><code>updiagonalarrow</code></td>
    <td><img alt="" src="https://mdn.mozillademos.org/files/6255/updiagonalarrow.png" style="height: 38px; width: 83px;"></td>
    <td><math> <menclose notation="updiagonalarrow"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>диагональная стрелка</td>
   </tr>
   <tr>
    <td><code>phasorangle</code></td>
    <td><img alt="Screenshot of the phasorangle notation" src="https://mdn.mozillademos.org/files/7851/phasorangle.png" style="height: 34px; width: 93px;"></td>
    <td><math> <menclose notation="phasorangle"> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> </menclose> </math></td>
    <td>угол</td>
   </tr>
  </tbody>
 </table>
 </dd>
</dl>

<h2 id="Примеры">Примеры</h2>

<pre class="brush: html">&lt;math&gt;

  &lt;menclose notation="circle box"&gt;
    &lt;mi&gt; x &lt;/mi&gt;
    &lt;mo&gt; + &lt;/mo&gt;
    &lt;mi&gt; y &lt;/mi&gt;
  &lt;/menclose&gt;

&lt;/math&gt;</pre>

<h2 id="Спецификации">Спецификации</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Спецификация</th>
   <th scope="col">Статус</th>
   <th scope="col">Комментарий</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{ SpecName('MathML3', 'chapter3.html#presm.menclose', 'menclose') }}</td>
   <td>{{ Spec2('MathML3') }}</td>
   <td>Текущая спецификация</td>
  </tr>
  <tr>
   <td>{{ SpecName('MathML2', 'chapter3.html#presm.menclose', 'menclose') }}</td>
   <td>{{ Spec2('MathML2') }}</td>
   <td>Начальная спецификация</td>
  </tr>
 </tbody>
</table>

<h2 id="Совместимость_с_браузерами">Совместимость с браузерами</h2>

<p> </p>

<p>{{Compat("mathml.elements.menclose")}}</p>

<p> </p>

<h2 id="Специфика_Gecko">Специфика Gecko</h2>

<ul>
 <li>Дополнительные значения для атрибута <code>notation</code> были добавлены в следующих релизах:

  <ul>
   <li><code>madruwb</code> в Gecko 2.0 {{GeckoRelease("2.0")}}.</li>
   <li><code>updiagonalarrow</code> в Gecko 24.0 {{GeckoRelease("24.0")}}</li>
   <li><code>phasorangle</code> в Gecko 32.0 {{GeckoRelease("32.0")}}</li>
  </ul>
 </li>
</ul>