diff options
Diffstat (limited to 'files/fr/web/api/stylesheet/href/index.html')
| -rw-r--r-- | files/fr/web/api/stylesheet/href/index.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/files/fr/web/api/stylesheet/href/index.html b/files/fr/web/api/stylesheet/href/index.html new file mode 100644 index 0000000000..f1ff1da5ea --- /dev/null +++ b/files/fr/web/api/stylesheet/href/index.html @@ -0,0 +1,51 @@ +--- +title: Stylesheet.href +slug: Web/API/StyleSheet/href +translation_of: Web/API/StyleSheet/href +--- +<div><font><font>{{APIRef ("CSSOM")}}</font></font></div> + +<h2 id="Summary" name="Summary"><font><font>Résumé</font></font></h2> + +<p><font><font>Renvoie l'emplacement de la feuille de style.</font></font></p> + +<h2 id="Syntax" name="Syntax"><font><font>Syntaxe</font></font></h2> + +<pre class="eval"><em><font><font>Uri</font></font></em><font><font> = stylesheet.href +</font></font></pre> + +<h3 id="Parameters" name="Parameters"><font><font>Paramètres</font></font></h3> + +<ul> + <li><code>uri</code><font><font> Est une chaîne contenant l'URI de la feuille de style.</font></font></li> +</ul> + +<h2 id="Example" name="Example"><font><font>Exemple</font></font></h2> + +<pre><font><font> // sur une machine locale: </font></font><font><font> + <Html> </font></font><font><font> + <Tête> </font></font><font><font> + <Link rel = "StyleSheet" href = "example.css" type = "text / css" /> </font></font><font><font> + <Script> </font></font><font><font> + Function sref () { </font></font><font><font> + Alerte (document.styleSheets [0] .href); </font></font><font><font> + }</font></font><font><font> + </ Script> </font></font><font><font> + </ Head> </font></font><font><font> + <Body> </font></font><font><font> + <Div class = "tonnerre"> Thunder </ div></font></font><font><font> + <Button onclick = "sref ()"> ss </ button></font></font><font><font> + </ Body> </font></font><font><font> + </ Html></font></font><font><font> +// retourne "fichier: //// C: /Windows/Desktop/example.css</font></font> +</pre> + +<h2 id="Notes" name="Notes"><font><font>Remarques</font></font></h2> + +<p><font><font>Si la feuille de style est une feuille de style liée, la valeur de son attribut est son emplacement. </font><font>Pour les feuilles de style en ligne, la valeur de cet attribut est </font></font><code>NULL</code><font><font>.</font></font></p> + +<p><font><font>Cette propriété est en lecture seule sur Firefox, Opera, Google Chrome et Safari, et elle est lue / écrite dans Internet Explorer.</font></font></p> + +<h2 id="Specification" name="Specification"><font><font>spécification</font></font></h2> + +<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.html#StyleSheets-StyleSheet-href"><font><font>Href </font></font></a></p> |
