CSS outreach mode

Outreach mode inline mode performance compared with the contents of the separation, but the style which is inserted into css, html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>如何使用CSS样式</title>
    <style>
        p{
            color :lightcoral;
            font-weight: bolder;
        }
        </style>
</head>
<body>
<p>这是一个段落内容.</p>
<p>这是一个段落内容.</p>
</body>
</html>

style is actually scan the contents of all of the change of p p

 

 

Another of our outreach model is made of two html files with css

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>如何使用CSS样式</title>
    <link rel="stylesheet" href="04.css">
</head>
<body>
<p>这是一个段落内容.</p>
</body>
</html>

 

p{
    color:lightcoral;
    font-weight: bolder;
}

 

Guess you like

Origin blog.csdn.net/qq_40354578/article/details/90814934