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

Tutoriel sur les bases de CSS?: Héritage

Héritage de propriétés CSS

Héritage de propriétés CSS?: Le style de l'élément externe sera hérité par l'élément interne. Les styles de plusieurs éléments externes seront éventuellement ??superposés?? sur les éléments internes.

Exemple?:

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>php.cn</title>
    <style type="text/css">
     div{
         color:red;
     }
     h1{
        color:blue; 
     }
     p{
         color:green;
     }
    </style>
    </head>
    <body>
        <div>
        <h1>習(xí)近平心中的互聯(lián)網(wǎng)</h1>
        <p>互聯(lián)網(wǎng)是20世紀(jì)最偉大的發(fā)明,它正在將人類“一網(wǎng)打盡”,人們在不知不覺中已經(jīng)融入了互聯(lián)網(wǎng)生態(tài),互聯(lián)網(wǎng)讓世界變成了“雞犬之聲相聞”的地球村。
        </p>
        </div>
    </body>
</html>

Affichez Firebug localement et vous pouvez voir

25.png


Quels types de propriétés CSS peuvent être héritées??

Les propriétés du texte CSS seront héritées?:

color, font-size, font-family, font-style, font-weight

text-align, text-decoration, text-indent, letter-spacing, line-height

Conseil?: les propriétés CSS dans <body>


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"> div{ color:red; } h1{ color:blue; } p{ color:green; } </style> </head> <body> <div> <h1>習(xí)近平心中的互聯(lián)網(wǎng)</h1> <p>互聯(lián)網(wǎng)是20世紀(jì)最偉大的發(fā)明,它正在將人類“一網(wǎng)打盡”,人們在不知不覺中已經(jīng)融入了互聯(lián)網(wǎng)生態(tài),互聯(lián)網(wǎng)讓世界變成了“雞犬之聲相聞”的地球村。 </p> </div> </body> </html>
soumettreRéinitialiser le code