aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/stylesheet/disabled/index.html
blob: d338299bf1458c1280865897b9099d7fbc886485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
title: StyleSheet.disabled
slug: Web/API/StyleSheet/disabled
translation_of: Web/API/StyleSheet/disabled
---
<div><font><font>{{APIRef("CSSOM")}}</font></font></div>

<p><font><font>La </font></font><code><strong>StyleSheet.disabled</strong></code><font><font>propriété indique si la feuille de style est empêchée de demander le document. </font><font>Une feuille de style peut être désactivé en réglant manuellement cette propriété </font></font><code>true</code><font><font>ou si elle est une forme </font><font>inactive </font></font><a href="/en-US/docs/Web/CSS/Alternative_style_sheets"><font><font>feuille de style alternatif</font></font></a><font><font> . </font><font>Notez que </font></font><code>disabled == false</code><font><font>ne garantit pas la feuille de style est appliquée (il pourrait être supprimé du document, par exemple).</font></font></p>

<h2 id="Syntax" name="Syntax"><font><font>Syntaxe</font></font></h2>

<pre class="eval"><em><font><font>bool</font></font></em><font><font> = stylesheet.disabled
</font></font></pre>

<h2 id="Example" name="Example"><font><font>Exemple</font></font></h2>

<pre><font><font>// si la feuille de style est désactivé ... </font></font><font><font>
si (stylesheet.disabled) {</font></font><font><font>
   // appliquer le style en ligne </font></font>
}
</pre>

<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-disabled"><font><font>désactivée </font></font></a></p>