aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/javascript/reference/global_objects/string/small
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-07-30 12:58:58 +0900
committerGitHub <noreply@github.com>2021-07-30 12:58:58 +0900
commitfbfc821d0024098150072144bf198f17f7ecb98f (patch)
tree8ca4c3d701b0cc0639f4e383c2549562c04f4cee /files/ja/web/javascript/reference/global_objects/string/small
parent9a156759565dd2fc69becdef99b30e2405c41687 (diff)
downloadtranslated-content-fbfc821d0024098150072144bf198f17f7ecb98f.tar.gz
translated-content-fbfc821d0024098150072144bf198f17f7ecb98f.tar.bz2
translated-content-fbfc821d0024098150072144bf198f17f7ecb98f.zip
ElementCSSInlineStyle の削除関係 (#1591)
ElementCSSInlineStyle の削除に関連する各ファイルを最新の英語版に同期
Diffstat (limited to 'files/ja/web/javascript/reference/global_objects/string/small')
-rw-r--r--files/ja/web/javascript/reference/global_objects/string/small/index.html60
1 files changed, 26 insertions, 34 deletions
diff --git a/files/ja/web/javascript/reference/global_objects/string/small/index.html b/files/ja/web/javascript/reference/global_objects/string/small/index.html
index 5e18de421a..40beeca185 100644
--- a/files/ja/web/javascript/reference/global_objects/string/small/index.html
+++ b/files/ja/web/javascript/reference/global_objects/string/small/index.html
@@ -2,71 +2,63 @@
title: String.prototype.small()
slug: Web/JavaScript/Reference/Global_Objects/String/small
tags:
- - Deprecated
- - HTML wrapper methods
- - JavaScript
- - Method
- - Prototype
- - Reference
- - String
+- Deprecated
+- HTML wrapper methods
+- JavaScript
+- Method
+- Prototype
+- Reference
+- String
+- Polyfill
+browser-compat: javascript.builtins.String.small
translation_of: Web/JavaScript/Reference/Global_Objects/String/small
---
<div>{{JSRef}} {{deprecated_header}}</div>
<p><strong><code>small()</code></strong> メソッドは、文字列が小さなフォントで表示されるように HTML の {{HTMLElement("small")}} 要素を生成します。</p>
-<h2 id="Syntax" name="Syntax">構文</h2>
+<h2 id="Syntax">構文</h2>
-<pre class="syntaxbox notranslate"><var>str</var>.small()</pre>
+<pre class="brush: js">small()</pre>
-<h3 id="Return_value" name="Return_value">返値</h3>
+<h3 id="Return_value">返値</h3>
<p>HTML の {{HTMLElement("small")}} 要素を含む文字列です。</p>
-<h2 id="Description" name="Description">解説</h2>
+<h2 id="Description">解説</h2>
<p><code>small()</code> メソッドは、文字列を <code>&lt;small&gt;</code> 要素の中に、 "<code>&lt;small&gt;str&lt;/small&gt;</code>" のように埋め込みます。</p>
-<h2 id="Examples" name="Examples">例</h2>
+<h2 id="Examples">例</h2>
-<h3 id="small_の使用">small() の使用</h3>
+<h3 id="Using_small">small() の使用</h3>
<p>以下の例では文字列のメソッドを使用して、文字列の大きさを変更しています。</p>
-<pre class="brush: js notranslate">var worldString = 'Hello, world';
+<pre class="brush: js">var worldString = 'Hello, world';
console.log(worldString.small()); // &lt;small&gt;Hello, world&lt;/small&gt;
console.log(worldString.big()); // &lt;big&gt;Hello, world&lt;/big&gt;
console.log(worldString.fontsize(7)); // &lt;font size="7"&gt;Hello, world&lt;/fontsize&gt;
</pre>
-<p>{{domxref("ElementCSSInlineStyle/style", "element.style")}} オブジェクトを使用すると、要素の <code>style</code> 属性を使用して、次のようにもっと汎用的に操作することができます。</p>
+<p>{{domxref("HTMLElement/style", "element.style")}} オブジェクトを使用すると、要素の <code>style</code> 属性を使用して、次のようにもっと汎用的に操作することができます。</p>
-<pre class="brush: js notranslate">document.getElementById('yourElemId').style.fontSize = '0.7em';
+<pre class="brush: js">document.getElementById('yourElemId').style.fontSize = '0.7em';
</pre>
-<h2 id="Specifications" name="Specifications">仕様書</h2>
+<h2 id="Specifications">仕様書</h2>
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">仕様書</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-string.prototype.small', 'String.prototype.small')}}</td>
- </tr>
- </tbody>
-</table>
+{{Specifications}}
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+<h2 id="Browser_compatibility">ブラウザーの互換性</h2>
-<p>{{Compat("javascript.builtins.String.small")}}</p>
+<p>{{Compat}}</p>
-<h2 id="See_also" name="See_also">関連情報</h2>
+<h2 id="See_also">関連情報</h2>
<ul>
- <li>{{jsxref("String.prototype.fontsize()")}}</li>
- <li>{{jsxref("String.prototype.big()")}}</li>
+ <li><code>String.prototype.small</code> のポリフィルは <a href="https://github.com/zloirock/core-js#ecmascript-string-and-regexp"><code>core-js</code></a> で利用できます</li>
+ <li>{{jsxref("String.prototype.fontsize()")}}</li>
+ <li>{{jsxref("String.prototype.big()")}}</li>
</ul>