css布局实现手机端卡包会员卡优惠券h5页面效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现手机端卡包会员卡优惠券h5页面效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>卡包</title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<style>
* {
margin: 0;
padding: 0;
border: 0;
list-style: none;
text-decoration: none;
color: inherit;
font-weight: normal;
font-family: "微软雅黑";
box-sizing: border-box;
font-style: normal;
outline: none;
-webkit-tap-highlight-color: transparent;
}
body {
width: 100%;
overflow-x: hidden;
background: #ffffff;
color: #ffffff;
}
img {
vertical-align: middle;
max-width: 100%;
}
.container {
width: 100%;
padding: 0 .4rem;
}
/*顶部*/
.top-bar {
display: flex;
justify-content: center;
align-items: center;
color: #333333;
width: 100%;
height: .88rem;
position: relative;
}
.top-bar i {
display: inline-block;
width: .5rem;
height: .88rem;
background: url(//repo.bfw.wiki/bfwrepo/image/60b95f5dd4bec.png) left center no-repeat;
background-size: .17rem .29rem;
position: absolute;
left: 0;
}
.top-bar span {
font-size: .36rem;
}
/* 卡包列表 */
.card-list {
padding: .28rem 0;
width: 100%;
}
.card-list .item {
width: 6.7rem;
height: 3.47rem;
margin-bottom: .25rem;
padding: .28rem .3rem;
position: relative;
border-radius: .3rem;
}
.card-list .item.blue {
background: url(//repo.bfw.wiki/bfwrepo/image/60c698fb22800.png) center center no-repeat;
background-size: 100%;
}
.card-list .item.purple {
background: url(//repo.bfw.wiki/bfwrepo/image/60c6990853fca.png) center center no-repeat;
background-size: 100%;
}
.card-list .item.red {
background: url(//repo.bfw.wiki/bfwrepo/image/60c6991d24343.png) center center no-repeat;
background-size: 100%;
}
.card-list .item .name {
display: flex;
justify-content: space-between;
align-items: center;
}
.card-list .item .name h3 {
font-size: .34rem;
letter-spacing: .02rem;
}
.card-list .item .name span {
font-size: .28rem;
display: inline-block;
background: rgba(255,255,255,.2);
padding: .........完整代码请登录后点击上方下载按钮下载查看
网友评论0