<!DOCTYPE html>
<html>
<head>
	<title>爱心网站 - 帮助有需要的人</title>
	<style>
		body {
			background-color: #F8F8F8;
			font-family: Arial, sans-serif;
			text-align: center;
		}
<pre><code>	h1 {
		color: #FF69B4;
		margin-top: 50px;
	}

	.container {
		margin-top: 50px;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
	}

	.card {
		margin: 20px;
		background-color: #FFFFFF;
		box-shadow: 0px 0px 10px #CCCCCC;
		border-radius: 10px;
		padding: 20px;
		width: 300px;
		height: 400px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		text-align: center;
	}

	.card img {
		width: 100%;
		height: 60%;
		object-fit: cover;
		border-radius: 10px 10px 0 0;
	}

	.card h2 {
		color: #FF69B4;
		margin-top: 20px;
	}

	.card p {
		color: #666666;
		margin-top: 10px;
		font-size: 14px;
		line-height: 20px;
	}

	.card button {
		margin-top: 20px;
		background-color: #FF69B4;
		color: #FFFFFF;
		border: none;
		padding: 10px 20px;
		border-radius: 5px;
		cursor: pointer;
		transition: all 0.3s ease;
	}

	.card button:hover {
		background-color: #FFFFFF;
		color: #FF69B4;
		border: 1px solid #FF69B4;
	}
&lt;/style&gt;
</code></pre>
</head>
<body>
	<h1>爱心网站 - 帮助有需要的人</h1>
	<div class='container'>
		<div class='card'>
			<img src='https://picsum.photos/300/200' alt='图片'>
			<h2>标题一</h2>
			<p>内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一内容一</p>
			<button>查看详情</button>
		</div>
		<div class='card'>
			<img src='https://picsum.photos/300/200' alt='图片'>
			<h2>标题二</h2>
			<p>内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二内容二</p>
			<button>查看详情</button>
		</div>
		<div class='card'>
			<img src='https://picsum.photos/300/200' alt='图片'>
			<h2>标题三</h2>
			<p>内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三内容三</p>
			<button>查看详情</button>
		</div>
		<div class='card'>
			<img src='https://picsum.photos/300/200' alt='图片'>
			<h2>标题四</h2>
			<p>内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四内容四</p>
			<button>查看详情</button>
		</div>
	</div>
</body>
</html>
爱心网站 - 帮助有需要的人

原文地址: http://www.cveoy.top/t/topic/lX8o 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录