--- 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() }}
Devuelve una lista de objetos de tipo stylesheet para las hojas de estilo que están específicamente enlazadas o contenidas en el documento.
styleSheetList.length
- devuelve el número de objetos de tipo stylesheet contenidos en el objeto.
styleSheetList = document.styleSheets
El objeto devuelto es del tipo StyleSheetList.
Es una colección ordenada de objetos de tipo stylesheet. styleSheetList.item(index)
o simplemente styleSheetList{{ mediawiki.external('
index
') }}
devuelve un único objeto de tipo stylesheet con el índice especificado (el índice es de origen 0).
DOM Level 2 Style: styleSheets
{{ languages( { "ja": "ja/DOM/document.styleSheets", "pl": "pl/DOM/document.styleSheets" } ) }}