1.3 KiB
1.3 KiB
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| bad87fee1348bd9bec908846 | Creare una riga di Bootstrap | 0 | 16813 | create-a-bootstrap-row |
--description--
Ora creeremo una riga (row) di Bootstrap per i nostri elementi in linea.
Crea un elemento div sotto il tag h3, con una classe row.
--hints--
Dovresti aggiungere un elemento div sotto il tuo elemento h3.
assert(
$('div').length > 1 &&
$('div.row h3.text-primary').length == 0 &&
$('div.row + h3.text-primary').length == 0 &&
$('h3.text-primary + div.row').length > 0
);
Il tuo elemento div dovrebbe avere la classe row
assert($('div').hasClass('row'));
Il tuo row div dovrebbe essere annidato all'interno del container-fluid div
assert($('div.container-fluid div.row').length > 0);
Il tuo elemento div dovrebbe avere un tag di chiusura.
assert(
code.match(/<\/div>/g) &&
code.match(/<div/g) &&
code.match(/<\/div>/g).length === code.match(/<div/g).length
);
--seed--
--seed-contents--
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
</div>
--solutions--
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row"></div>
</div>