chore(i18n,curriculum): update translations (#42487)

* chore(i18n,curriculum): update translations

* chore: Italian to italian

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
This commit is contained in:
camperbot
2021-06-15 03:34:20 +09:00
committed by GitHub
parent 840c7c738f
commit b3af21d50f
556 changed files with 57236 additions and 0 deletions

View File

@ -0,0 +1,70 @@
---
id: bad87fee1348bd9aedf08736
title: Stilizzare l'elemento Body
challengeType: 0
videoUrl: 'https://scrimba.com/c/cB77PHW'
forumTopicId: 18313
dashedName: style-the-html-body-element
---
# --description--
Ora iniziamo a parlare dell'ereditarietà dei CSS.
Ogni pagina HTML ha un elemento `body`.
# --instructions--
Possiamo dimostrare che l'elemento `body` esiste dandogli un `background-color` nero.
Possiamo farlo aggiungendo quanto segue al nostro elemento `style`:
```css
body {
background-color: black;
}
```
# --hints--
Il tuo elemento `body` dovrebbe avere il `background-color` nero.
```js
assert($('body').css('background-color') === 'rgb(0, 0, 0)');
```
La regola CSS dovrebbe essere formattata correttamente con entrambe le parentesi graffe di apertura e chiusura.
```js
assert(
code.match(/<style>\s*body\s*\{\s*background.*\s*:\s*.*;\s*\}\s*<\/style>/i)
);
```
La tua regola CSS dovrebbe terminare con un punto e virgola.
```js
assert(
code.match(/<style>\s*body\s*\{\s*background.*\s*:\s*.*;\s*\}\s*<\/style>/i)
);
```
# --seed--
## --seed-contents--
```html
<style>
</style>
```
# --solutions--
```html
<style>
body {
background-color: black;
}
</style>
```