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;
					}

背景图片

相关推荐
日常筹谋记2 小时前
工业厂房 TPO 防水卷材:技术需求如何传导到配方层面?
运维·网络·html
沙蒿同学2 小时前
不引 Ghostscript:我用纯 Go 给 PDF 做了一场「压缩手术」
前端·后端·github
变与不变8063 小时前
jQuery细节以及使用应用场景
前端·javascript·jquery
SailingCoder4 小时前
【封闭结束1】端到端交付:Agent 一次请求如何走完全链路
前端·安全·ai·面试·agent·harness
风骏时光牛马7 小时前
AI多模块协同自动化工作流
前端
zhangminghuan7 小时前
前端面试应对技巧
前端·面试·职场和发展
计算机魔术师7 小时前
潜伏14年的PHP致命洞,AI跑两天就交卷了
前端
IT_陈寒7 小时前
Vue的这个响应式陷阱我居然现在才发现
前端·人工智能·后端
Python自动化直播8 小时前
智能脚本批量管理拆开看:导入、导出、重写、试听
前端·python·ai·秒播