vue实现固定漂浮的电商购物车代码
代码语言:html
所属分类:电商
代码描述:vue实现固定漂浮的电商购物车代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: sans-serif;
color: #262626;
}
.flex_col,
.flex {
display: flex;
}
.flex_col {
flex-direction: column;
}
.x_start {
justify-content: flex-start;
}
.x_end {
justify-content: flex-end;
}
.x_center {
justify-content: center;
}
.x_se {
justify-content: space-evenly;
}
.x_sb {
justify-content: space-between;
}
.y_center {
align-items: center;
}
.y_start {
align-items: flex-start;
}
.y_end {
align-items: flex-end;
}
.y_base {
align-items: baseline;
}
#shop {
flex-wrap: wrap;
}
.product {
text-align: center;
filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}
.product_name {
margin-bottom: 0.5em;
}
.product_price {
font-size: 1.2em;
display: inline-block;
background: #fffbd3;
padding: 0.5em;
border-radius: 0.5em;
vertical-align: middle;
}
.product_count {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
font-size: 2em;
}
.Del,
.qtyMinus,
.qtyPlus {
cursor: pointer;
border-radius: 50%;
width: 22px;
height: 22px;
}
.Del {
background: #f00;
line-height: 22px;
}
.btn:hover {
background-color: #ff6347;
}
.qtyMinus {
background: #fa8072 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><line x1='0' y1='5' x2='10' y2='5' stroke='white'></line></svg>") center/60% no-repeat;
}
.qtyPlus {
background: #fa8072 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' stroke='white'><line x1='0' y1='5' x2='10' y2='5'></line><line x1='5' y1='0' x2='5' y2='10'></line></svg>") center/60% no-repeat;
}
.disabled {
opacity: 0.2;
cursor: not-allowed;
}
.product_count .qtyMinus,
.prod.........完整代码请登录后点击上方下载按钮下载查看
网友评论0