From 03385cc9f4f157cec2e5fd05f35e6af646055908 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 14 Sep 2021 11:07:46 +0900 Subject: Web/API以下の文書内のリンクURLを正規化 (#2360) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /en-US へのリンクを /ja へのリンクに修正 - /ja が付いていないものに /ja を付加 - MDN内のリンクが完全URLの場合、 /ja/docs からのURLに修正 --- .../css_object_model/using_dynamic_styling_information/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files/ja/web/api/css_object_model') diff --git a/files/ja/web/api/css_object_model/using_dynamic_styling_information/index.html b/files/ja/web/api/css_object_model/using_dynamic_styling_information/index.html index 7a73cb4b15..c5b2d9a3b2 100644 --- a/files/ja/web/api/css_object_model/using_dynamic_styling_information/index.html +++ b/files/ja/web/api/css_object_model/using_dynamic_styling_information/index.html @@ -89,11 +89,11 @@ function resetStyle(elemId) {

{{ EmbedLiveSample('Modify_an_element_style') }}

-

document.defaultView オブジェクトの {{domxref("window.getComputedStyle", "getComputedStyle()")}} メソッドは、その要素に対して計算された全てのスタイルを返します。このメソッドの使い方について詳しくはサンプルの Example 6: getComputedStyle を参照してください。

+

document.defaultView オブジェクトの {{domxref("window.getComputedStyle", "getComputedStyle()")}} メソッドは、その要素に対して計算された全てのスタイルを返します。このメソッドの使い方について詳しくはサンプルの Example 6: getComputedStyle を参照してください。

DOM Style オブジェクト

-

style オブジェクトは独立したスタイル指定です。 document.styleSheets から個別にルールを取得するのとは異なり、 style オブジェクトは document またはスタイルが適用される要素から取得されます。ある特定の要素のインラインスタイルを表します。

+

style オブジェクトは独立したスタイル指定です。 document.styleSheets から個別にルールを取得するのとは異なり、 style オブジェクトは document またはスタイルが適用される要素から取得されます。ある特定の要素のインラインスタイルを表します。

この記事で例示した CSS プロパティに限らず、 style オブジェクトを通して要素のスタイルを個別に操作できるという点が重要です。

@@ -128,7 +128,7 @@ function resetStyle(elemId) {

setAttribute メソッドの利用

-

要素のスタイルの変更には、要素の setAttribute メソッドを使うこともできます。

+

要素のスタイルの変更には、要素の setAttribute メソッドを使うこともできます。

var el = document.getElementById('some-element');
 el.setAttribute('style', 'background-color:darkblue;');
-- 
cgit v1.2.3-54-g00ecf