aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/api/stylesheet/href
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:45 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:45 -0500
commit1109132f09d75da9a28b649c7677bb6ce07c40c0 (patch)
tree0dd8b084480983cf9f9680e8aedb92782a921b13 /files/es/web/api/stylesheet/href
parent4b1a9203c547c019fc5398082ae19a3f3d4c3efe (diff)
downloadtranslated-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.html38
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:
+ &lt;html&gt;
+ &lt;head&gt;
+ &lt;link rel="StyleSheet" href="example.css" type="text/css" /&gt;
+ &lt;script&gt;
+ function sref() {
+ alert(document.styleSheets[0].href);
+ }
+ &lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+ &lt;div class="thunder"&gt;Thunder&lt;/div&gt;
+ &lt;button onclick="sref()"&gt;ss&lt;/button&gt;
+ &lt;/body&gt;
+ &lt;/html&gt;
+// 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>