网页基本代码

3 篇文章 0 订阅

这里是网页的基本框架

这里是HTML 

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="css/as.css"/>
	</head>
	<body class="fd">
		<div class="maodian"><a href="#ok"><img src="img/cvgjbnj.png" title="回到顶部" class="sc"/></a></div>
		<div class="sd" id="ok">
			<ul>
				<li>
					<p>主页</p>
				</li>
				<li>
					<p class="uh">VTC</p>
				</li>
				<li>
					<p class="rf">交通</p>
				</li>
				<li>
					<p class="xc"><img src="img/搜索-copy.svg" class="jn"/></p>
				</li>
			</ul>
				
		</div>
		<div>&nbsp;</div>
		<div class="qw"></div>
		<div>&nbsp;</div>
		<div class="dibu"></div>
	</body>
</html>

这里是CSS

.fd{
	background-color: #e4e4e4;
}

.qw {
	width: 1000px;
	height: 1000px;
	text-align: center;
	background-color: #ffffff;
	margin: 0 auto;
	text-align: center;
	text-shadow: 10px 10px 5px #999;
	border-radius:25px;
}

.sd{
	width: 1510px;
	height: 50px;
	background-color: #ffffff;
	border-radius:20px;
	text-indent: 15em;
}

.po{
	width: 60px;
	height: 60px;
}

.dibu{
	width: 1510px;
	height: 60px;
	background-color: #ffffff;
	border-radius:25px;
}

.jn{
	width: 20px;
	height: 20px;
	text-align: right;
}

.sc{
	width: 60px;
	height: 60px;
}

.maodian {
	position: fixed;
	top: 50%;
	right: 20px;
	border-radius: 50%;
	font-size: 0;
	overflow: hidden;
	cursor: pointer;
}


ul {
	display: flex;
	list-style-type: none;
}

li {
	margin-right: 10px;
}

.uh{
	text-indent: 750px;
}

.rf{
	text-indent: 20px;
}

.xc{
	text-indent: 20px;
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值