css+html制作订单页面
•
前端
这是我完成的第一个小项目,根着b站黑马前端进阶课程做的。话不多说,先上效果图:
目前只用到html+css,其实都是一些基础操作,主要是熟悉flex布局。
html部分
确认订单
高哈哈
18778846715
云南省曲靖市海淀区
康贝尔 非接触试红外体温仪
领劵立减300元 婴儿级材质 测温...
粉色 红外体温仪
¥999
¥1299
1
配送方式
顺丰快递
买家备注
希望卖家可以快点发货~谢谢!!
支付方式
支付宝
商品总价
¥999.00
运费
¥0.00
折扣
¥300.00
合计:¥999.00
已支付
css样式设计
/*公共样式*/
body{
background-color: #f7f7f8;
}
.red{
color: red;
}
.pannel{
margin-bottom: 10px;
background-color: #fff;
border-radius: 5px;
}
/*主体内容*/
.main{
padding: 12px 11px 5px;/*上 左右 下*/
}
.user_msg{
display: flex;
align-items: center;
padding: 15px 0 15px 11px;
}
.user_msg .location{
width: 30px;
height: 30px;
margin-right: 10px;
background-image: linear-gradient(90deg,
#6fc2aa 5%,#54b196 100%);
border-radius: 50%;
text-align: center;
line-height: 30px;
color: #fff;
}
.user_msg .user{
flex:1;
}
.user_msg .user .top{
display: flex;
}
.user_msg .user .top h6{
width: 55px;
font-size: 15px;
font-weight: 400;
}
.user_msg .user .top p{
font-size: 13px;
}
.user_msg .user .bottom{
margin-top: 5px;
font-size: 12px;
}
.user_msg .more{
width: 44px;
height: 44px;
/* background-color:#54b196; */
text-align: center;
line-height: 44px;
color: #808080;
}
/*底部左支付*/
.pay{
position: fixed;
left: 0;
bottom: 0;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
height: 80px;
padding: 0 11px;
/* background-color: white; */
border-top: 1px solid #ededed;
}
.pay .left{
font-size: 12px ;
}
.pay .left i{
font-style: normal;
font-size: 20px;
}
.pay .right a{
display: block;
width: 90px;
height: 35px;
background-image: linear-gradient(90deg,
#6fc2aa 5%,
#54b196 100%);
border-radius: 3px ;
text-align: center;
line-height: 35px;
font-size: 13px;
color: #fff;
}
/*goods*/
.goods{
display: flex;
padding: 11px 0 11px 11px;
}
.goods .pic{
width: 85px;
height: 85px;
margin-right: 10px;
}
.goods .info{
flex: 1;
}
.goods .info h5{
font-size: 13px;
color: #262626;
font-weight: 400;
}
.goods .info p{
width: 95px;
height: 20px;
margin: 5px 0;
background-color: #f7f7f8;
font-size: 12px;
color: #888;
}
.goods .info span:first-child{
margin-right: 5px;
}
.goods .info .price{
font-size: 12px;
}
.goods .info .price i{
font-size: 16px;
}
.goods .info .price span:last-child{
margin-left: 5px;
color: #999;
text-decoration: line-through;
}
.goods .count{
width: 44px;
height: 44px;
text-align: center;
line-height: 44px;
}
.rest{
padding: 15px ;
}
.rest div{
display: flex;
margin-bottom: 30px;
}
.rest div:last-child{
margin-bottom: 0;
}
.rest div:nth-child(2n+1){
justify-content: space-between;
}
.rest div:nth-child(2) p{
margin-left: 20px;
font-size: 12px;
color: #989898;
}
.rest h5 ,.rest p{
font-size: 12px;
color: #262626;
font-weight: 400;
}
.rest2{
padding: 15px ;
}
.rest2 div{
display: flex;
margin-bottom: 30px;
}
.rest2 div{
justify-content: space-between;
font-size: 12px;
}
.rest2 h5 ,.rest p{
font-size: 12px;
color: #262626;
font-weight: 400;
}
本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/c7f9702633.html
