css布局实现电商商品分类筛选列表效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现电商商品分类筛选列表效果代码

代码标签: 电商 商品 分类 筛选 列表 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<style>
    /*初始化页面*/
* {
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-family: "微软雅黑";
}
ul li {
  list-style: none;
}
.content {
  width: 1198px;
  margin: 0 auto;
}
input {
  outline: none;
}
/*主题内容*/
.main1 {
  margin-top: 100px;
  position: relative;
}
.main1 .open {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 40px;
  background: #f7f7f7;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
}
.main1 .open:hover {
  color: red;
}
.main1 .open span {
  font-size: 14px;
}
.main {
  width: 1198px;
  border: 1px solid #ccc;
  border-bottom: none;
  color: #777;
  display: flex;
}
.main ul {
  display: flex;
  justify-content: center;
  align-items: center;
}
.main ul .text01 {
  width: 110px;
  height: 40px;
  line-height: 40px;
  padding-left: 20px;
  box-sizing: border-box;
}
.main .ul1 {
  border-right: 1px solid #ccc;
}
.main .ul2 {
  border-left: none;
  padding-left: 10px;
}
.main .ul2 li {
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
  color: #777;
  font-size: 12px;
  cursor: pointer;
  box-sizing: borde.........完整代码请登录后点击上方下载按钮下载查看

网友评论0