vue编写的电商购物车添加删除修改数量代码
代码语言:html
所属分类:电商
代码描述:vue编写的电商购物车添加删除修改数量代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,700"); *, *::before, *::after { box-sizing: border-box; } body { font-family: "Open Sans", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 16px; padding: 3rem; display: flex; justify-content: center; } #app { width: 100%; max-width: 70rem; } h1 { margin: 0 0 3rem; text-transform: uppercase; text-align: center; font-weight: 400; } .grid { display: flex; } .grid .col-sx, .grid .col-dx { width: 50%; } .products { padding: 0 1rem 0 0; } .products h2 { margin-top: 0; margin-bottom: 2rem; padding-bottom: 1rem; font-weight: 400; border-bottom: 1px solid #555; } .products .products-list { margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; } .products .products-list .product { margin: 0; list-style: none; width: 50%; } .products .products-list .product:nth-child(odd) { padding-right: 1rem; } .products .products-list .product:nth-child(even) { padding-left: 1rem; } .products .products-list .product .box { margin-bottom: 2.15rem; padding: 1rem; text-align: center; box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.15); } .products .products-list .product .box:nth-child(even) { margin-left: 0.5rem; } .products .products-list .product .box .image { display: block; width: 100%; height: 100px; background: #eee; margin-bottom: 1rem; } .products .products-list .product .box .title { margin-top: 0; } .products .products-list .product .box button { padding: 0.35rem 0.7rem 0.28rem; border: 0; text-transform: uppercase; font-size: 0.85em; color: #fff; background: rgba(0, 0, 0, 0.5); box-shadow: 0 18px 10px -10px rgba(0, 0, 0, 0.25); transition: background 0.4s, box-shadow 0.4s; cursor: pointer; outline: none; } .products .products-list .product .box button:hover, .products .products-list .product .box button:focus { background:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0