aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/css/background-image
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:17 -0500
commitda78a9e329e272dedb2400b79a3bdeebff387d47 (patch)
treee6ef8aa7c43556f55ddfe031a01cf0a8fa271bfe /files/it/web/css/background-image
parent1109132f09d75da9a28b649c7677bb6ce07c40c0 (diff)
downloadtranslated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.gz
translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.bz2
translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.zip
initial commit
Diffstat (limited to 'files/it/web/css/background-image')
-rw-r--r--files/it/web/css/background-image/index.html126
1 files changed, 126 insertions, 0 deletions
diff --git a/files/it/web/css/background-image/index.html b/files/it/web/css/background-image/index.html
new file mode 100644
index 0000000000..f07e6d72f7
--- /dev/null
+++ b/files/it/web/css/background-image/index.html
@@ -0,0 +1,126 @@
+---
+title: background-image
+slug: Web/CSS/background-image
+tags:
+ - CSS_1
+ - CSS_2.1
+ - CSS_3
+translation_of: Web/CSS/background-image
+---
+<p>&lt;&lt; <a href="it/Guida_di_riferimento_ai_CSS">Guida di riferimento ai CSS</a></p>
+
+<h3 id="Sommario" name="Sommario">Sommario</h3>
+
+<p>La proprietà <code>background-image</code> imposta l'immagine di sfondo di un elemento.</p>
+
+<ul>
+ <li>Valore iniziale: none</li>
+ <li>Si applica a: tutti gli elementi</li>
+ <li>Eredità: no</li>
+ <li>Percentuali: N/A</li>
+ <li>Media: <a href="it/CSS/Media/Visual">visual</a></li>
+ <li>Valore calcolato: URI assoluto o none</li>
+</ul>
+
+<h3 id="Sintassi" name="Sintassi">Sintassi</h3>
+
+<pre class="eval">background-image:<em>uri</em> | none | inherit
+</pre>
+
+<h3 id="Valori" name="Valori">Valori</h3>
+
+<dl>
+ <dt>uri </dt>
+ <dd>L'indirizzo dell'immagine da utilizzare come sfondo</dd>
+ <dt>none </dt>
+ <dd>Specifica che l'elemento non ha alcuna immagina di sfondo</dd>
+</dl>
+
+<h2 id="Esempi">Esempi</h2>
+
+<p>Note that the star image is partially transparent and is layered over the cat image.</p>
+
+<h3 id="HTML">HTML</h3>
+
+<pre class="brush: html">&lt;div&gt;
+ &lt;p class="catsandstars"&gt;
+ This paragraph is full of cats&lt;br /&gt;and stars.
+ &lt;/p&gt;
+ &lt;p&gt;This paragraph is not.&lt;/p&gt;
+ &lt;p class="catsandstars"&gt;
+ Here are more cats for you.&lt;br /&gt;Look at them!
+ &lt;/p&gt;
+ &lt;p&gt;And no more.&lt;/p&gt;
+&lt;/div&gt;</pre>
+
+<h3 id="CSS">CSS</h3>
+
+<pre class="brush: css">pre, p {
+ font-size: 1.5em;
+ color: #FE7F88;
+ background-color: transparent;
+}
+
+div {
+ background-image: url("https://mdn.mozillademos.org/files/6457/mdn_logo_only_color.png");
+}
+
+p {
+ background-image: none;
+}
+
+.catsandstars {
+ background-image: url("https://mdn.mozillademos.org/files/11991/startransparent.gif"),
+ url("https://mdn.mozillademos.org/files/7693/catfront.png");
+ background-color: transparent;
+}
+</pre>
+
+<h3 id="Result">Result</h3>
+
+<p>{{EmbedLiveSample('Esempi')}}</p>
+
+<h3 id="Note" name="Note">Note</h3>
+
+<p>Gli sviluppatori dovrebbero specificare la proprietà <a href="it/CSS/background-color">background-color</a>, cioè un colore di sfondo che verrà mostrato se l'immagine non è disponibile. Le immagini di sfondo vengono mostrare sopra il colore di sfondo.</p>
+
+<h3 id="Specifiche" name="Specifiche">Specifiche</h3>
+
+<ul>
+ <li><a class="external" href="http://www.w3.org/TR/CSS1#background-image">CSS 1</a></li>
+ <li><a class="external" href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-image">CSS 2.1</a></li>
+ <li><a class="external" href="http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-background-image">CSS 3</a></li>
+</ul>
+
+<h3 id="Browser_Compatibility" name="Browser_Compatibility">Browser Compatibility</h3>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th>Browser</th>
+ <th>Versione minima</th>
+ </tr>
+ <tr>
+ <td>Internet Explorer</td>
+ <td>4</td>
+ </tr>
+ <tr>
+ <td>Firefox</td>
+ <td>1</td>
+ </tr>
+ <tr>
+ <td>Netscape</td>
+ <td>4</td>
+ </tr>
+ <tr>
+ <td>Opera</td>
+ <td>3.5</td>
+ </tr>
+ </tbody>
+</table>
+
+<h3 id="Vedi_Anche" name="Vedi_Anche">Vedi Anche</h3>
+
+<p><code><a href="it/CSS/background">background</a></code></p>
+
+<p>{{ languages( { "en": "en/CSS/background-image", "fr": "fr/CSS/background-image", "pl": "pl/CSS/background-image", "es": "es/CSS/background-image" } ) }}</p>