aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/css/child_combinator/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/it/web/css/child_combinator/index.html')
-rw-r--r--files/it/web/css/child_combinator/index.html122
1 files changed, 122 insertions, 0 deletions
diff --git a/files/it/web/css/child_combinator/index.html b/files/it/web/css/child_combinator/index.html
new file mode 100644
index 0000000000..0a7db4d019
--- /dev/null
+++ b/files/it/web/css/child_combinator/index.html
@@ -0,0 +1,122 @@
+---
+title: Selettore di Figli Diretti
+slug: Web/CSS/Child_combinator
+tags:
+ - compinatori css
+ - selettore di figli diretti
+translation_of: Web/CSS/Child_combinator
+original_slug: Web/CSS/selettore_figli_diretti
+---
+<div>{{CSSRef("Selectors")}}</div>
+
+<div>Il combinatore<strong> </strong>"<strong>&gt;</strong>" separa due selettori selezionando solo quegli elementi selezionati con il secondo selettore che sono <strong>figli diretti </strong>del primo selettore.</div>
+
+<div> </div>
+
+<div>Al contrario, quando due selettori sono combinati con il <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_selectors">selettore discendente</a>, vengono selezionati tutti gli elementi che soddisfano il secondo selettore per il quale esiste un elemento antenato definito dal primo selettore, indipendentemente dal numero di "salti" attraverso l'albero DOM.</div>
+
+<div> </div>
+
+<h2 id="Sintassi">Sintassi</h2>
+
+<pre class="syntaxbox">selettore1 &gt; selettore2 {<em>stili CSS</em> }
+</pre>
+
+<h2 id="Esempio">Esempio</h2>
+
+<pre class="brush: css">span { background-color: white; }
+div &gt; span {
+ background-color: DodgerBlue;
+}
+</pre>
+
+<pre class="brush: html">&lt;div&gt;
+ &lt;span&gt;Span 1. In the div.
+ &lt;span&gt;Span 2. In the span that's in the div.&lt;/span&gt;
+ &lt;/span&gt;
+  &lt;span&gt;Span 3. In the div&lt;/span&gt;
+&lt;/div&gt;
+
+&lt;span&gt;Span 4. Not in a div at all.&lt;/span&gt;
+</pre>
+
+<p>{{EmbedLiveSample("Example", 200, 100)}}</p>
+
+<h2 id="Specifiche">Specifiche</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('CSS4 Selectors', '#child-combinators', 'child combinator')}}</td>
+ <td>{{Spec2('CSS4 Selectors')}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName('CSS3 Selectors', '#child-combinators', 'child combinators')}}</td>
+ <td>{{Spec2('CSS3 Selectors')}}</td>
+ <td>No change</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('CSS2.1', 'selector.html#child-selectors', 'child selectors')}}</td>
+ <td>{{Spec2('CSS2.1')}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Compatibilità_tra_i_browser">Compatibilità tra i browser</h2>
+
+<p>{{CompatibilityTable}}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari</th>
+ </tr>
+ <tr>
+ <td>supporto di base</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>7.0</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Mobile</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>supporto di base</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>