HTML网页设计 科幻风格引入页

成品如下

html

html 复制代码
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>引入页</title>
		<link href="css/引入页.css" type="text/css" rel="stylesheet" />
		<style>
		body{
		    background-image:url("image/www2.jpg");
		    background-size:cover;
		}
		</style>
	</head>
	<body>
		<div class="YR">
					<h2>Science is a great treasure house of knowledge accumulated by mankind.</h2>
					<h2>科学是人类积累的知识的巨大宝库<br>欢迎你,朋友</h2><br>
					<a href="index.html" class="BB"><b>立即探索</b></a>
				</div>
	</body>
</html>

css

html 复制代码
.YR {
						width: 550px;
						height: 300px;
						margin: auto;
						margin-top: 200px;
						background-color: transparent;
						padding: 50px 50px 30px;
						box-shadow: 10px 10px 15px black;
						text-align: center;
		
					}
					.BB {
						text-decoration: none;
						font-size: larger;
						color: #1f4e5f;
					}
		
					h2 {
						font-family: Courier New;
					}
					a:hover {
						background-color: #f4f7f7;
						padding: 10px;
					}

背景图片

相关推荐
Vuji1 天前
MCP: 一条 tool 调用链路的旅程
前端·人工智能
万少1 天前
DeepSeek-V4-Flash 正式版上线了,但这 3 个坑我帮你提前踩了
前端·javascript·后端
明月_清风1 天前
🚀 Palantir Foundry 本体论实战:当 Ontology 从"知识图谱"进化为"企业操作系统"
前端·后端
驳是1 天前
入坑 Nginx,看这一篇就够了
前端
宁风NF1 天前
JavaScript:网络请求与前端通信
开发语言·前端·javascript·网络·学习·ecmascript
明月_清风1 天前
从概念到代码:用 Ontology 构建你的第一个知识图谱
前端·后端
程序员黑豆1 天前
鸿蒙应用开发:AppStorage 全局状态存储用法教程
前端·harmonyos
猫猫不是喵喵.1 天前
Vue3 中 computed 计算属性与 watch、watchEffect 监听
前端·javascript·vue.js
En^_^Joy1 天前
Vue项目创建与入口配置全攻略
前端·vue.js·arcgis
爱码小白1 天前
importlib模块
开发语言·前端·python