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

背景图片

相关推荐
_.Switch40 分钟前
Python Web 应用中的 API 网关集成与优化
开发语言·前端·后端·python·架构·log4j
一路向前的月光1 小时前
Vue2中的监听和计算属性的区别
前端·javascript·vue.js
长路 ㅤ   1 小时前
vite学习教程06、vite.config.js配置
前端·vite配置·端口设置·本地开发
长路 ㅤ   1 小时前
vue-live2d看板娘集成方案设计使用教程
前端·javascript·vue.js·live2d
Fan_web1 小时前
jQuery——事件委托
开发语言·前端·javascript·css·jquery
安冬的码畜日常1 小时前
【CSS in Depth 2 精译_044】第七章 响应式设计概述
前端·css·css3·html5·响应式设计·响应式
赛男丨木子丿小喵1 小时前
visual studio2022添加新项中没有html和css
css·html·visual studio
莹雨潇潇2 小时前
Docker 快速入门(Ubuntu版)
java·前端·docker·容器
Jiaberrr2 小时前
Element UI教程:如何将Radio单选框的圆框改为方框
前端·javascript·vue.js·ui·elementui
Tiffany_Ho3 小时前
【TypeScript】知识点梳理(三)
前端·typescript