css实现自适应响应式商品卡片列表效果代码

代码语言:html

所属分类:响应式

代码描述:css实现自适应响应式商品卡片列表效果代码品卡片列表效果代码

代码标签: 适应 响应 商品 卡片 列表 效果

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

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
	<title>服装颜色选择</title>
	<meta name="description" content="Neat">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" user-scalable="no">
<style>
    html, body{
	min-height: 100%;
}
*{
	margin:0;
	padding:0;
	font-size: 12px;
}
ul{
	list-style:none;
}
.hide{
    display: none;
}
.lf{
	float: left;
}
.lr{
	float: right;
}
.red, .red a,.red a h5, .red a p{
    color:#FF0000 !important;
}
html{
	background: #f0efef;
}
a {
    text-decoration: none;
    color: inherit;
}

.main-group{
	max-width:1000px;
	width:100%;
	margin:30px auto;
	box-sizing: border-box;
}
.main-group .title{
	font-size: 3em;
	text-align: center;
}

.data-group{
	margin-top:4em;
	box-sizing: border-box;
	display: flex;
	flex-wrap:wrap;
}
.data-group .item-group{
	max-width: calc((100% - 6rem) / 3);
    width: calc((100% - 6rem) / 3);
	position: relative;
    margin: 1.5rem 1rem 0px;
}
.data-group .item-group a{
	color:rgb(19, 19, 21);
}
.data-group .item-group .img-group{
	width:100%;
	overflow: hidden;
	background: #fff;
	/* position: relative; */
}.........完整代码请登录后点击上方下载按钮下载查看

网友评论0