Vue模拟实现购物车结算功能

【Vue模拟实现购物车结算功能】本文实例为大家分享了Vue实现购物车结算功能的具体代码,供大家参考,具体内容如下
Vue模拟实现购物车结算功能
文章图片

Document - 锐客网* {padding: 0; margin: 0}a {text-decoration: none; }.container {width: 500px; margin: 10px auto; }.title {width: 500px; height: 50px; text-align: center; line-height: 50px; font-size: 20px; background-color: paleturquoise; }.item {position: relative; height: 50px; border-bottom: 1px solid paleturquoise; }.item img {float: left; width: 100px; height: 50px; }.item .price {position: absolute; float: left; width: 120px; margin-left: 10px; top: 15px; left: 100px; }.item .change {position: absolute; left: 220px; top: 15px; float: left; width: 200px; }.change a {float: left; display: block; width: 20px; height: 20px; font-size: 18px; text-align: center; line-height: 20px; background-color: #ccc; }.change input {float: left; width: 50px; margin: 0 5px; }.item .del {position: absolute; top: 8px; left: 420px; color: red; font-size: 24px; }.item .del:hover {top: 0; height: 50px; background-color: blue; }.total {position: relative; width: 500px; height: 50px; background-color: cornflowerblue; }.total span {position: absolute; top: 14px; left: 250px; }.total span em {color: red; font-style: normal; font-size: 20px; }.total button {position: absolute; top: 8px; left: 400px; width: 50px; height: 35px; border-radius: 25%; border: none; outline: none; background-color: tomato; }

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。

    推荐阅读