写一个纯HTML+CSS的网页
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Website</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 20px;
}
<pre><code> h1 {
color: #333;
text-align: center;
}
p {
color: #555;
line-height: 1.5;
}
.container {
max-width: 600px;
margin: 0 auto;
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.button {
display: inline-block;
padding: 10px 20px;
background-color: #333;
color: #fff;
text-decoration: none;
border-radius: 5px;
}
.button:hover {
background-color: #555;
}
</style>
</code></pre>
</head>
<body>
<div class="container">
<h1>Welcome to My Website</h1>
<p>This is a sample HTML and CSS webpage.</p>
<p>Feel free to explore and modify the code as you like!</p>
<a href="#" class="button">Click Me</a>
</div>
</body>
</html
原文地址: https://www.cveoy.top/t/topic/hIdl 著作权归作者所有。请勿转载和采集!