<!DOCTYPE html>
<html>
<head>
	<title>复杂度适中的纯HTML与CSS页面代码</title>
	<style type="text/css">
		body {
			background-color: #F5F5F5;
			font-family: Arial, sans-serif;
		}
<pre><code>	.container {
		width: 800px;
		margin: 0 auto;
		padding: 20px;
		background-color: #fff;
		box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
	}

	h1 {
		color: #333;
		font-size: 36px;
		margin-bottom: 30px;
		text-align: center;
	}

	#circle {
		width: 200px;
		height: 200px;
		background-color: #2196F3;
		border-radius: 50%;
		margin: 0 auto;
		animation: rotate 2s linear infinite;
	}

	@keyframes rotate {
		from {
			transform: rotate(0deg);
		}
		to {
			transform: rotate(360deg);
		}
	}

	.box {
		width: 100%;
		height: 300px;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		margin-top: 50px;
	}

	.box-item {
		width: 200px;
		height: 200px;
		background-color: #F44336;
		margin: 20px;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #fff;
		font-size: 24px;
		font-weight: bold;
		text-align: center;
		border-radius: 10px;
		box-shadow: 0px 0px 5px rgba(0,0,0,0.2);
		transition: all 0.3s ease-in-out;
	}

	.box-item:hover {
		transform: scale(1.1);
		box-shadow: 0px 0px 10px rgba(0,0,0,0.4);
	}
&lt;/style&gt;
</code></pre>
</head>
<body>
	<div class="container">
		<h1>复杂度适中的纯HTML与CSS页面代码</h1>
		<div id="circle"></div>
		<div class="box">
			<div class="box-item">1</div>
			<div class="box-item">2</div>
			<div class="box-item">3</div>
			<div class="box-item">4</div>
			<div class="box-item">5</div>
			<div class="box-item">6</div>
			<div class="box-item">7</div>
			<div class="box-item">8</div>
		</div>
	</div>
</body>
</html
请生成一个复杂度适中的纯HTML与CSS页面代码。内容可以是简单的图形或动画。

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

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