diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:45 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:45 -0500 |
commit | 1109132f09d75da9a28b649c7677bb6ce07c40c0 (patch) | |
tree | 0dd8b084480983cf9f9680e8aedb92782a921b13 /files/es/web/api/stylesheet/href | |
parent | 4b1a9203c547c019fc5398082ae19a3f3d4c3efe (diff) | |
download | translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.gz translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.bz2 translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.zip |
initial commit
Diffstat (limited to 'files/es/web/api/stylesheet/href')
-rw-r--r-- | files/es/web/api/stylesheet/href/index.html | 38 |
1 files changed, 38 insertions, 0 deletions
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> |