css实现手机端移动端外卖点餐菜单联动效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现手机端移动端外卖点餐菜单联动效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<style>
*{
padding: 0;
margin: 0;
}
.header{
width: 100%;
height: 150px;
background: #555;
}
.swiper-container-ul{
list-style: none;
overflow: hidden;
width: 100%;
background: #fff;
top: 0;
}
.swiper-container-ul-li{
width: 50%;
height: 40px;
line-height: 40px;
float: left;
text-align: center;
}
.actives{
border-bottom: 1px solid #3190e8;
color: #3190e8;
}
.content{
width: 100%;
overflow: hidden;
}
.left{
top: 41px;
float: left;
width: 25%;
height: 100%;
background: #eee;
}
.left ul{
list-style: none;
}
.left ul li{
padding: 15px 5px;
text-align: center;
}
.active{
background: #fff;
border-left: 2px solid #3190e8;
}
.right{
float: left;
width: 75%;
height: 100%;
}
.right ul{
list-style: none;
}
.class-title{
padding: 7px 10px;
background: #eee;
}
.item{
overflow: hidden;
width: 100%;
padding: 10px;
background: #fff;
border-bottom: 1px solid #eee;
}
.item-left{
float: left;
}
.item-right{
float: left;
padding: 0 10px;
}
.item-img{
width: 100px;
height: 100px;
background: #eee;
}
.title{
width: 100px;
height: 20px;
margin-top: 10px;
background: #eee;
}
.subtitle{
width: 70px;
height: 20px;
margin-top: 10px;
background: #eee;
}
.price{
width: 50px;
height: 20px;
margin-top: 10px;
background: #eee;
}
</style>
</head>
<body>
<div class="header"></div>
<div class="swiper-container">
<ul class="swiper-container-ul">
<li class="swiper-container-ul-li actives">商品</li>
<li class="swiper-container-ul-li">店铺</li>
</ul>
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="content">
<div class="left" id="left">
<ul>
<li v-for="item in items">{{item.name}}</li>
</ul>
</div>
<div class="right" id="right">
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0