html逗人开心网页代码
时间: 2023-11-21 13:56:31 浏览: 61
以下是一个简单的HTML逗人开心网页代码示例:
```html
<!DOCTYPE html>
<html>
<head>
<title>逗人开心网页</title>
<style>
body {
background-color: #F8D7DA;
font-family: Arial, sans-serif;
text-align: center;
}
h1 {
color: #721C24;
font-size: 4rem;
margin-top: 10%;
}
p {
color: #721C24; font-size: 2rem;
margin-top: 5%;
}
button {
background-color: #721C24;
border: none;
color: white;
padding: 1rem 2rem;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 2rem;
margin-top: 5%;
cursor: pointer;
border-radius: 10px;
}
button:hover {
background-color: #C7254E;
}
</style>
</head>
<body>
<h1>欢迎来到逗人开心网页!</h1>
<p>这是一个简单的HTML逗人开心网页示例。</p>
<button onclick="alert('你真的很逗!')">点我一下</button>
</body>
</html>
```