From 785c0b7c8adc9e73cfd07817009c4437255c9398 Mon Sep 17 00:00:00 2001 From: MDN Date: Wed, 10 Mar 2021 16:18:46 +0000 Subject: [CRON] sync translated content --- files/fr/web/api/document/stylesheets/index.html | 57 ++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 files/fr/web/api/document/stylesheets/index.html (limited to 'files/fr/web/api/document') diff --git a/files/fr/web/api/document/stylesheets/index.html b/files/fr/web/api/document/stylesheets/index.html new file mode 100644 index 0000000000..2965e4eb43 --- /dev/null +++ b/files/fr/web/api/document/stylesheets/index.html @@ -0,0 +1,57 @@ +--- +title: Document.styleSheets +slug: Web/API/Document/styleSheets +translation_of: Web/API/DocumentOrShadowRoot/styleSheets +translation_of_original: Web/API/Document/styleSheets +original_slug: Web/API/DocumentOrShadowRoot/styleSheets +--- +
{{APIRef}}
+ +
La propriété Document.styleSheets est en lecture seule et retourne une liste {{domxref("StyleSheetList")}} d'objets {{domxref("StyleSheet")}}, qui font référence à l'ensemble des feuilles de style contenues ou embarquées dans le document.
+ +
 
+ +

Syntaxe

+ +
var styleSheetList = document.styleSheets;
+
+ +

L'objet retourné est une liste {{domxref("StyleSheetList")}}.

+ +

Il s'agit d'une collection ordonnée d'objets {{domxref("StyleSheet")}}. styleSheetList.item(index) ou  styleSheetList{{ mediawiki.External('index') }} retourne un seul objet stylesheet par son index (index débute par 0).

+ +

Spécification

+ + + + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('CSSOM', '#dom-document-stylesheets', 'styleSheets')}}{{Spec2('CSSOM')}} 
{{SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-DocumentStyle-styleSheets', 'styleSheets')}}{{Spec2('DOM2 Style')}} 
+ +

Voir aussi

+ + + + -- cgit v1.2.3-54-g00ecf