diff options
Diffstat (limited to 'files/es/web/api/stylesheet')
-rw-r--r-- | files/es/web/api/stylesheet/disabled/index.html | 20 | ||||
-rw-r--r-- | files/es/web/api/stylesheet/href/index.html | 38 | ||||
-rw-r--r-- | files/es/web/api/stylesheet/index.html | 50 | ||||
-rw-r--r-- | files/es/web/api/stylesheet/media/index.html | 24 | ||||
-rw-r--r-- | files/es/web/api/stylesheet/ownernode/index.html | 35 | ||||
-rw-r--r-- | files/es/web/api/stylesheet/parentstylesheet/index.html | 24 | ||||
-rw-r--r-- | files/es/web/api/stylesheet/title/index.html | 13 | ||||
-rw-r--r-- | files/es/web/api/stylesheet/type/index.html | 17 |
8 files changed, 221 insertions, 0 deletions
diff --git a/files/es/web/api/stylesheet/disabled/index.html b/files/es/web/api/stylesheet/disabled/index.html new file mode 100644 index 0000000000..470283c9dc --- /dev/null +++ b/files/es/web/api/stylesheet/disabled/index.html @@ -0,0 +1,20 @@ +--- +title: Stylesheet.disabled +slug: Web/API/StyleSheet/disabled +translation_of: Web/API/StyleSheet/disabled +--- +<p>{{ ApiRef() }}</p> +<h3 id="Summary" name="Summary">Resumen</h3> +<p>Esta propiedad indica si es se aplica o no, la hoja de estilo actual.</p> +<h3 id="Syntax" name="Syntax">Sintaxis</h3> +<pre class="eval"><em>bool</em> = stylesheet.disabled +</pre> +<h3 id="Example" name="Example">Ejemplo</h3> +<pre>// si la hoja de estilo está deshabilitada... +if (stylesheet.disabled) { + // apply style in-line +} +</pre> +<h3 id="Specification" name="Specification">Especificación</h3> +<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.html#StyleSheets-StyleSheet-disabled">disabled </a></p> +<p>{{ languages( { "pl": "pl/DOM/stylesheet.disabled" } ) }}</p> diff --git a/files/es/web/api/stylesheet/href/index.html b/files/es/web/api/stylesheet/href/index.html new file mode 100644 index 0000000000..0f4a42dd0c --- /dev/null +++ b/files/es/web/api/stylesheet/href/index.html @@ -0,0 +1,38 @@ +--- +title: stylesheet.href +slug: Web/API/StyleSheet/href +translation_of: Web/API/StyleSheet/href +--- +<p>{{ ApiRef() }}</p> +<h3 id="Summary" name="Summary">Resumen</h3> +<p>Devuelve la localización de la hoja de estilo.</p> +<h3 id="Syntax" name="Syntax">Sintaxis</h3> +<pre class="eval"><em>uri</em> = stylesheet.href +</pre> +<h3 id="Parameters" name="Parameters">Parámetros</h3> +<ul> + <li><code>uri</code> es una cadena que contiene la URI de la hoja de estilo.</li> +</ul> +<h3 id="Example" name="Example">Ejemplo</h3> +<pre> // en una máquina local: + <html> + <head> + <link rel="StyleSheet" href="example.css" type="text/css" /> + <script> + function sref() { + alert(document.styleSheets[0].href); + } + </script> + </head> + <body> + <div class="thunder">Thunder</div> + <button onclick="sref()">ss</button> + </body> + </html> +// returns "file:////C:/Windows/Desktop/example.css +</pre> +<h3 id="Notes" name="Notes">Notas</h3> +<p>Si la hoja de estilo es un enlace, el valor de este atributo es su localización. Para las hojas de estilo in-line, el valor del atributo es NULL.</p> +<p> </p> +<h3 id="Specification" name="Specification">Specification</h3> +<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.html#StyleSheets-StyleSheet-href">href </a></p> diff --git a/files/es/web/api/stylesheet/index.html b/files/es/web/api/stylesheet/index.html new file mode 100644 index 0000000000..3344780e21 --- /dev/null +++ b/files/es/web/api/stylesheet/index.html @@ -0,0 +1,50 @@ +--- +title: objeto Stylesheet +slug: Web/API/StyleSheet +translation_of: Web/API/StyleSheet +--- +<p>{{ ApiRef("CSSOM") }}</p> + +<p>Esta sección describe el objeto <a class="external" href="http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleSheet">CSSStyleSheet</a>, que representa una única hoja de estilos CSS.</p> + +<p>Una hoja de estilos CSS consiste en reglas CSS que pueden, cada una de ellas, ser manipuladas a través del objeto <a href="/Es/DOM/CssRule" title="es/DOM/cssRule">CSSRule</a>. El objeto de la hoja de estilo en sí mismo, te permite examinar y modificar la hoja de estilos, incluyendo su lista de reglas.</p> + +<p>Puedes tomar la lista de estilos de un documento determinado mediante el uso de la propiedad <a href="/es/DOM/document.styleSheets" title="es/DOM/document.styleSheets">document.styleSheets</a>.</p> + +<h3 id="Properties" name="Properties">Propiedades</h3> + +<dl> + <dt><a href="/Es/DOM/Stylesheet.cssRules" title="es/DOM/stylesheet.cssRules">stylesheet.cssRules</a></dt> + <dd>Devuelve todas las reglas CSS que hay en la hoja de estilo, en forma de arreglo.</dd> + <dt><a href="/es/DOM/stylesheet.disabled" title="es/DOM/stylesheet.disabled">stylesheet.disabled</a></dt> + <dd>Esta propiedad indica si se ha aplicado o no, la hoja de estilo actual.</dd> + <dt><a href="/es/DOM/stylesheet.href" title="es/DOM/stylesheet.href">stylesheet.href</a></dt> + <dd>Devuelve la localización de la hoja de estilo.</dd> + <dt><a href="/es/DOM/stylesheet.media" title="es/DOM/stylesheet.media">stylesheet.media</a></dt> + <dd>Especifica el medio al que se tiene intención de aplicar la hoja de estilo.</dd> + <dt><a href="/es/DOM/stylesheet.ownerNode" title="es/DOM/stylesheet.ownerNode">stylesheet.ownerNode</a></dt> + <dd>el nodo que asocia la hoja de estilo con el documento.</dd> + <dt><a href="/es/DOM/stylesheet.ownerRule" title="es/DOM/stylesheet.ownerRule">stylesheet.ownerRule</a></dt> + <dd>Si la hoja de estilo tiene una regla marcada con @import, la propiedad ownerRule contendrá la CSSImportRule.</dd> + <dt><a href="/es/DOM/stylesheet.parentStyleSheet" title="es/DOM/stylesheet.parentStyleSheet">stylesheet.parentStyleSheet</a></dt> + <dd>Devuelve la hoja de estilo que que está incluida en esta, si existe.</dd> + <dt><a href="/es/DOM/stylesheet.title" title="es/DOM/stylesheet.title">stylesheet.title</a></dt> + <dd>Devuelve el título de la hoja de estilo actual.</dd> + <dt><a href="/es/DOM/stylesheet.type" title="es/DOM/stylesheet.type">stylesheet.type</a></dt> + <dd>Especifica el lenguaje de la hoja de estilo.</dd> +</dl> + +<h3 id="Methods" name="Methods">Métodos</h3> + +<dl> + <dt><a href="/es/DOM/stylesheet.deleteRule" title="es/DOM/stylesheet.deleteRule">stylesheet.deleteRule</a></dt> + <dd>Elimina una regla de la hoja de estilo.</dd> + <dt><a href="/es/DOM/stylesheet.insertRule" title="es/DOM/stylesheet.insertRule">stylesheet.insertRule</a></dt> + <dd>Agrega una nueva regla de estilo a la hoja de estilo actualmente usada.</dd> +</dl> + +<h3 id="Specification" name="Specification">Especificación</h3> + +<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet">DOM Level 2 Style Sheets: StyleSheet</a></p> + +<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleSheet">DOM Level 2 CSS: CSSStyleSheet</a></p> diff --git a/files/es/web/api/stylesheet/media/index.html b/files/es/web/api/stylesheet/media/index.html new file mode 100644 index 0000000000..47e36011cd --- /dev/null +++ b/files/es/web/api/stylesheet/media/index.html @@ -0,0 +1,24 @@ +--- +title: Stylesheet.media +slug: Web/API/StyleSheet/media +translation_of: Web/API/StyleSheet/media +--- +<p>{{ ApiRef() }}</p> +<h3 id="Summary" name="Summary">Resumen</h3> +<p><strong>media</strong> Especifica el medio al que se tiene intención de aplicar la hoja de estilo.</p> +<h3 id="Syntax" name="Syntax">Sintaxis</h3> +<pre class="eval"><em>medium</em> = stylesheet.media +stylesheet.media = <em>medium</em> +</pre> +<h3 id="Parameters" name="Parameters">Parámetros</h3> +<ul> + <li><code>medium</code> es una cadena que describe un medio único o una lista de valores separados por comas.</li> +</ul> +<h3 id="Example" name="Example">Ejemplo</h3> +<pre><link rel="StyleSheet" href="document.css" type="text/css" media="screen" /> +</pre> +<h3 id="Notes" name="Notes">Notas</h3> +<p>El valor por defecto para media es "screen."</p> +<h3 id="Specification" name="Specification">Especificación</h3> +<p>DOM Level 2 Styles - STYLESHEET</p> +<p>{{ languages( { "pl": "pl/DOM/stylesheet.media" } ) }}</p> diff --git a/files/es/web/api/stylesheet/ownernode/index.html b/files/es/web/api/stylesheet/ownernode/index.html new file mode 100644 index 0000000000..e7a14fb528 --- /dev/null +++ b/files/es/web/api/stylesheet/ownernode/index.html @@ -0,0 +1,35 @@ +--- +title: Stylesheet.ownerNode +slug: Web/API/StyleSheet/ownerNode +translation_of: Web/API/StyleSheet/ownerNode +--- +<p>{{ ApiRef() }}</p> +<h3 id="Summary" name="Summary">Resumen</h3> +<p><strong>ownerNode</strong> devuelve el nodo que asocia la hoja de estilo con el documento.</p> +<h3 id="Syntax" name="Syntax">Sintaxis</h3> +<pre class="eval"><em>objRef</em> = stylesheet.ownerNode +</pre> +<h3 id="Example" name="Example">Ejemplo</h3> +<pre class="eval"><html> + <head> + <link rel="StyleSheet" href="example.css" type="text/css" /> + <script> + function stilo() { + alert(document.styleSheets[0].ownerNode); + } + </script> + </head> + <body> +</pre> +<div class="thunder"> + Thunder</div> +<pre class="eval"> <button onclick="stilo()">ss</button> + </body> +</html> +// displays "object HTMLLinkElement" +</pre> +<h3 id="Notes" name="Notes">Notas</h3> +<p>Para el HTML, <strong>ownerNode</strong> correspondería a un elemento <a href="/es/LINK" title="es/LINK">LINK</a> o <a href="/Es/DOM/Element.style" title="es/DOM/element.style">STYLE</a>. Para XML, serían las instrucciones del proceso de enlace. Para las hojas de estilo que están incluidas en otras hojas de estilo, este valor es NULL.</p> +<h3 id="Specification" name="Specification">Especificación</h3> +<p>DOM Level 2 Styles - STYLESHEET</p> +<p>{{ languages( { "pl": "pl/DOM/stylesheet.ownerNode" } ) }}</p> diff --git a/files/es/web/api/stylesheet/parentstylesheet/index.html b/files/es/web/api/stylesheet/parentstylesheet/index.html new file mode 100644 index 0000000000..118aedd82a --- /dev/null +++ b/files/es/web/api/stylesheet/parentstylesheet/index.html @@ -0,0 +1,24 @@ +--- +title: Stylesheet.parentStyleSheet +slug: Web/API/StyleSheet/parentStyleSheet +translation_of: Web/API/StyleSheet/parentStyleSheet +--- +<p>{{ ApiRef() }}</p> +<h3 id="Summary" name="Summary">Resumen</h3> +<p>Devuelve la hoja de estilo que incluye a la que está en curso, si existe.</p> +<h3 id="Syntax" name="Syntax">Sintaxis</h3> +<pre class="eval"><em>objRef</em> = stylesheet.parentStyleSheet +</pre> +<h3 id="Example" name="Example">Ejemplo</h3> +<pre class="eval">// encuentra la hoja de estilo de alto nivel +if (stylesheet.parentStyleSheet) { + sheet = stylesheet.parentStyleSheet; +} +else +{ sheet = stylesheet; } +</pre> +<h3 id="Notes" name="Notes">Notas</h3> +<p>Esta propiedad devuelve NULL si la hoja de estilo actual es una hoja de estilo de alto nivel o si la inclusión de hojas de estilo no está implementada.</p> +<h3 id="Specification" name="Specification">Specification</h3> +<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.html#StyleSheets-StyleSheet-parentStyleSheet">parentStyleSheet </a></p> +<p>{{ languages( { "pl": "pl/DOM/stylesheet.parentStyleSheet" } ) }}</p> diff --git a/files/es/web/api/stylesheet/title/index.html b/files/es/web/api/stylesheet/title/index.html new file mode 100644 index 0000000000..e6c61082d7 --- /dev/null +++ b/files/es/web/api/stylesheet/title/index.html @@ -0,0 +1,13 @@ +--- +title: Stylesheet.title +slug: Web/API/StyleSheet/title +translation_of: Web/API/StyleSheet/title +--- +<p>{{ ApiRef() }}</p> +<h3 id="Summary" name="Summary">Resumen</h3> +<p><strong>title</strong> devuelve el título de la hoja de estilo que se está usando.</p> +<h3 id="Notes" name="Notes">Notas</h3> +<p>El título es a menudo especificado en el <a href="/es/DOM/stylesheet.ownerNode" title="es/DOM/stylesheet.ownerNode">ownerNode</a>.</p> +<h3 id="Specification" name="Specification">Especificación</h3> +<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.html#StyleSheets-StyleSheet-title">title </a></p> +<p>{{ languages( { "pl": "pl/DOM/stylesheet.title" } ) }}</p> diff --git a/files/es/web/api/stylesheet/type/index.html b/files/es/web/api/stylesheet/type/index.html new file mode 100644 index 0000000000..fa60372cc0 --- /dev/null +++ b/files/es/web/api/stylesheet/type/index.html @@ -0,0 +1,17 @@ +--- +title: Stylesheet.type +slug: Web/API/StyleSheet/type +translation_of: Web/API/StyleSheet/type +--- +<p>{{ ApiRef() }}</p> +<h3 id="Summary" name="Summary">Resumen</h3> +<p>type especifica el lenguaje de la hoja de estilo.</p> +<h3 id="Syntax" name="Syntax">Sintaxis</h3> +<pre class="eval"><em>string</em> = stylesheet.type +</pre> +<h3 id="Example" name="Example">Ejemplo</h3> +<pre> ss.type = "text/css"; +</pre> +<h3 id="Specification" name="Specification">Especificación</h3> +<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.html#StyleSheets-StyleSheet-type">type </a></p> +<p>{{ languages( { "pl": "pl/DOM/stylesheet.type" } ) }}</p> |