亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Taille du didacticiel de base CSS, propriétés de police et de texte

Attribut de taille CSS

  • largeur?: largeur de l'élément, assurez-vous d'ajouter des unités px.

  • hauteur?: hauteur de l'élément.


Propriété de police CSS

  • font-size?: taille du texte. Par exemple?: font-size:14px;

  • font-family: font. Par exemple : font-family : Microsoft Yahei ;

  • font-style : italic, valeur : italic. Par exemple : font-style:italic;

  • font-weight : bold, valeur : bold. Tels que?: font-weight:bold;


Propriété de texte CSS

  • color?: couleur du texte

  • text-decoration?: ligne de décoration du texte, valeurs?: aucune, souligné, surligné, barré (Barré)

  • text-align?: alignement horizontal du texte, valeurs?: gauche, centre, droite

  • line-height?: ligne High, vous pouvez utiliser une valeur fixe ou un pourcentage. Par exemple?: line-height:24px; line-height:150%;

  • text-indent?: retrait de la première ligne. Par exemple?: text-indent:28px;

  • letter-spacing?: espacement des mots.

L'exemple est le suivant

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>php.cn</title>
    <style type="text/css">
    h1{
        color:red;
        width:350px;
        text-align:center;
        font-family:微軟雅黑;
    }
    p{
         line-height:150%;
         text-indent:28px;
         font-family:楷體;
    }
    .box{
        font-style:italic;
        font-weight:bold;
        text-decoration:underline;
    }
    </style>
    </head>
    <body>
        <h1>習(xí)近平心中的互聯(lián)網(wǎng)</h1>
        <p>互聯(lián)網(wǎng)是20世紀最偉大的發(fā)明,它正在將人類“<span class="box">一網(wǎng)打盡</span>”,人們在不知不覺中已經(jīng)融入了互聯(lián)網(wǎng)生態(tài),互聯(lián)網(wǎng)讓世界變成了“雞犬之聲相聞”的地球村。</p>
    </body>
</html>


Formation continue
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>php.cn</title> <style type="text/css"> h1{ color:red; width:350px; text-align:center; font-family:微軟雅黑; } p{ line-height:150%; text-indent:28px; font-family:楷體; } .box{ font-style:italic; font-weight:bold; text-decoration:underline; } </style> </head> <body> <h1>習(xí)近平心中的互聯(lián)網(wǎng)</h1> <p>互聯(lián)網(wǎng)是20世紀最偉大的發(fā)明,它正在將人類“<span class="box">一網(wǎng)打盡</span>”,人們在不知不覺中已經(jīng)融入了互聯(lián)網(wǎng)生態(tài),互聯(lián)網(wǎng)讓世界變成了“雞犬之聲相聞”的地球村。</p> </body> </html>
soumettreRéinitialiser le code