js实现页面中的楼层效果

本文介绍如何使用JavaScript和HTML5实现网页中的楼层导航功能,通过动态操作DOM元素,实现点击按钮跳转到相应楼层,提供良好的用户体验。
摘要由CSDN通过智能技术生成
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			#warp{
				width: 800px;
				margin: 0 auto;
			}
			.box{
				width: 100%;
				height: 700px;
				background: red;
				color: #fff;
				text-align: center;
				font-size: 100px;
				border: 3px solid yellow;
			}
			.lis{
				list-style: none;
				position: fixed;
				top:50px;
				left:300px;
				width: 60px;
				/*display: none;*/
				transform: scale(0);
				transition: 1s;
			}
			li{
				width: 100%;
				height: 60px;
				border: 1px solid red;
				color: green;
				font-size: 15px;
				text-align: center;
				line-height: 60px;
				background: #ccc;
			}
			li:hover{
				background: yellow;
			}
		</style>
	</head>
	<body>
		<div id="warp">
			<div class="box">进口零食</div>
			
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值