css 使用一

<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>开始学习CSS</title>
    <!--
    <link rel="stylesheet" href="/static/css/test1.css">
    -->
    <style type="text/css">
        body {
    font-family: Georgia, Serif;
}
h1 {
    color: hotpink;
    border-bottom-color: purple ;
    border-bottom-width: 10px;
    border-bottom-style: dotted ;
}
h2 {
    font-style: italic;
    color: #4cae4c;
}
.job-title {
    font-style: italic;
    font-weight: bold;
}
#eeeeee {
    border:5px #2e6da4 solid;
    background-color: pink;
    padding: 20px ;
}
a:link {
    color: #2a2a2a;
}
a:visited {
    color: red;
}
a:hover {
    color: aqua;
}
    </style>
</head>

<body>
<h1>Jane Doe</h1>
<div class="job-title">Web Developer</div>
<p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.</p>

<p>A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. </p>

<h2>Contact information</h2>
<ul id="eeeeee">
    <li>Email: <a href="mailto:jane@example.com">jane@example.com</a></li>
    <li>Web: <a href="http://example.com">http://example.com</a></li>
    <li>Tel: 123 45678</li>
</ul>

</body>

</html>
原文地址:https://www.cnblogs.com/zy09/p/13884904.html