写一个视觉的网页
<!DOCTYPE html>
<html>
<head>
<title>视觉网页</title>
<style>
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f2f2f2;
font-family: Arial, sans-serif;
}
<pre><code> .content {
width: 500px;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.title {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}
.description {
font-size: 16px;
margin-bottom: 20px;
}
.button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
.button:hover {
background-color: #0056b3;
}
</style>
</code></pre>
</head>
<body>
<div class="container">
<div class="content">
<h1 class="title">欢迎来到视觉网页</h1>
<p class="description">这是一个视觉网页的示例,展示了基本的HTML和CSS样式。</p>
<button class="button">点击这里</button>
</div>
</div>
</body>
</html
原文地址: https://www.cveoy.top/t/topic/hQhS 著作权归作者所有。请勿转载和采集!