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

背景图片

相关推荐
CHU72903518 分钟前
定制专属美丽时刻:美容预约商城小程序的贴心设计
前端·小程序
浩~~1 小时前
反射型XSS注入
前端·xss
AwesomeDevin1 小时前
AI时代,我们的任务不应沉溺于与 AI 聊天,🤔 从“对话式编程”迈向“数字软件工厂”
前端·后端·架构
harrain1 小时前
antvG2折线图和区间range标记同时绘制
前端·javascript·vue.js·antv·g2
德育处主任Pro1 小时前
从重复搭建到高效生产,RollCode的H5开发新范式
前端
蜡台2 小时前
SPA(Single Page Application) Web 应用(即单页应用)架构模式 更新
前端·架构·vue·react·spa·spa更新
网络点点滴2 小时前
组件通信-作用域插槽
前端·javascript·vue.js
kyriewen113 小时前
异步编程:从“回调地狱”到“async/await”的救赎之路
开发语言·前端·javascript·chrome·typescript·ecmascript·html5
Old Uncle Tom3 小时前
Markdown Viewer 再升级
前端
Luna-player3 小时前
Vue3中使用vue-awesome-swiper
前端·vue.js·arcgis