Attribut d'affi...SE CONNECTER

Attribut d'affichage du didacticiel de base CSS

attribut d'affichage

  • Fonction : Spécifie comment les éléments de la page Web sont affichés.

  • Valeurs : aucune (cachée), bloc (affiché sous forme d'éléments de bloc), inline (affiché sous forme d'éléments en ligne)

  • bloc : OK Convertir éléments en ligne pour bloquer les éléments.

  • inline : vous pouvez convertir des éléments de bloc en éléments en ligne.

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>php.cn</title>
    <style type="text/css">
     p{
        display:none;
     }
    </style>
    </head>
    <body>
        <h1>习近平心中的互联网</h1>
        <p>互联网是20世纪最伟大的发明,它正在将人类“一网打尽”,人们在不知不觉中已经融入了互联网生态,互联网让世界变成了“鸡犬之声相闻”的地球村。</p>
    </body>
</html>


Supprimez à nouveau la ligne suivante et vérifiez le résultat

 p{
        display:none;
     }


section suivante
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>php.cn</title> <style type="text/css"> p{ display:none; } </style> </head> <body> <h1>习近平心中的互联网</h1> <p>互联网是20世纪最伟大的发明,它正在将人类“一网打尽”,人们在不知不觉中已经融入了互联网生态,互联网让世界变成了“鸡犬之声相闻”的地球村。</p> </body> </html>
soumettreRéinitialiser le code
chapitredidacticiel