From fbfc821d0024098150072144bf198f17f7ecb98f Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Fri, 30 Jul 2021 12:58:58 +0900 Subject: ElementCSSInlineStyle の削除関係 (#1591) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ElementCSSInlineStyle の削除に関連する各ファイルを最新の英語版に同期 --- .../reference/global_objects/string/big/index.html | 62 ++++++++++------------ 1 file changed, 27 insertions(+), 35 deletions(-) (limited to 'files/ja/web/javascript/reference/global_objects/string/big/index.html') diff --git a/files/ja/web/javascript/reference/global_objects/string/big/index.html b/files/ja/web/javascript/reference/global_objects/string/big/index.html index 7d9e1a69d6..35bcb8a53e 100644 --- a/files/ja/web/javascript/reference/global_objects/string/big/index.html +++ b/files/ja/web/javascript/reference/global_objects/string/big/index.html @@ -2,13 +2,15 @@ title: String.prototype.big() slug: Web/JavaScript/Reference/Global_Objects/String/big 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.big translation_of: Web/JavaScript/Reference/Global_Objects/String/big ---
{{JSRef}} {{deprecated_header}}
@@ -16,61 +18,51 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/big

big() メソッドは、文字列が大きなフォントで表示されるように HTML の {{HTMLElement("big")}} 要素を生成します。

-

使用上の注意: <big> 要素は HTML5 で廃止されており、今後使用するべきではありません。代わりにウェブ開発者は CSS プロパティを使用してください。

+

注: <big> 要素は HTML5 で廃止されており、今後使用するべきではありません。代わりにウェブ開発者は CSS プロパティを使用してください。

-

構文

+

構文

-
str.big()
+
big()
-

返値

+

返値

HTML の {{HTMLElement("big")}} 要素を含む文字列です。

-

解説

+

解説

big() メソッドは、文字列を <big> 要素の中に、 "<big>str</big>" のように埋め込みます。

-

+

-

big() の使用

+

big() の使用

以下の例では文字列のメソッドを使用して、文字列の大きさを変更しています。

-
var worldString = 'Hello, world';
+
var worldString = 'Hello, world';
 
 console.log(worldString.small());     // <small>Hello, world</small>
 console.log(worldString.big());       // <big>Hello, world</big>
 console.log(worldString.fontsize(7)); // <fontsize=7>Hello, world</fontsize>
 
-

{{domxref("ElementCSSInlineStyle/style", "element.style")}} オブジェクトを使用すると、要素の style 属性を使用して、次のようにもっと汎用的に操作することができます。

+

{{domxref("HTMLElement/style", "element.style")}} オブジェクトを使用すると、要素の style 属性を使用して、次のようにもっと汎用的に操作することができます。

-
document.getElementById('yourElemId').style.fontSize = '2em';
+
document.getElementById('yourElemId').style.fontSize = '2em';
 
-

仕様書

+

仕様書

- - - - - - - - - - - -
仕様書
{{SpecName('ESDraft', '#sec-string.prototype.big', 'String.prototype.big')}}
+{{Specifications}} -

ブラウザーの互換性

+

ブラウザーの互換性

-

{{Compat("javascript.builtins.String.big")}}

+

{{Compat}}

-

関連情報

+

関連情報

    -
  • {{jsxref("String.prototype.fontsize()")}}
  • -
  • {{jsxref("String.prototype.small()")}}
  • +
  • String.prototype.big のポリフィルは core-js から利用できます
  • +
  • {{jsxref("String.prototype.fontsize()")}}
  • +
  • {{jsxref("String.prototype.small()")}}
-- cgit v1.2.3-54-g00ecf