520表白代码html
时间: 2023-08-30 22:05:26 浏览: 51
以下是一个简单的520表白代码HTML:
```html
<!DOCTYPE html>
<html>
<head>
<title>520表白</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
background-color: #f5f5f5;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
padding-top: 50px;
}
h1 {
color: #e60073;
font-size: 48px;
margin-bottom: 20px;
}
p {
font-size: 24px;
margin-bottom: 20px;
}
button {
background-color: #e60073;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 18px;
cursor: pointer;
}
button:hover {
background-color: #ff1a8c;
}
</style>
</head>
<body>
<h1>520</h1>
<p>我爱你,这是我送给你的520表白。</p>
<button onclick="alert('我也爱你!')">点击回应</button>
</body>
</html>
```
你可以将上面的代码复制到一个文本文件中并将其保存为`.html`文件,然后在浏览器中打开它,就能看到一个简单的520表白页面。