From 19c5534a076599c2b5a790bfa4e54a49a782c4a9 Mon Sep 17 00:00:00 2001 From: Code12121 <3056762376@qq.com> Date: Thu, 20 Oct 2022 08:16:11 +0800 Subject: [PATCH] changes --- 08-综合练习/商品列表/css/css.css | 74 ++++++++++++ 08-综合练习/商品列表/index/index.html | 108 +----------------- 08-综合练习/商品列表/js/index.js | 42 +++++++ 3 files changed, 118 insertions(+), 106 deletions(-) create mode 100644 08-综合练习/商品列表/css/css.css create mode 100644 08-综合练习/商品列表/js/index.js diff --git a/08-综合练习/商品列表/css/css.css b/08-综合练习/商品列表/css/css.css new file mode 100644 index 0000000..ff0cbcd --- /dev/null +++ b/08-综合练习/商品列表/css/css.css @@ -0,0 +1,74 @@ + * { + margin: 0; + padding: 0; + } + + .item, + ul, + .bottom { + margin: 0 auto; + } + + ul { + width: 400px; + background-color: aqua; + list-style: none; + } + + h2 { + text-align: center; + padding: 30px 0; + } + + li { + width: 80%; + height: 50px; + background-color: #fff; + margin: 20px auto; + display: flex; + font-size: 18px; + } + + .bottom { + font-size: 18px; + width: 80%; + border-top: 1px solid #000; + display: flex; + } + + .left, + .right { + margin: 15px 0; + } + + .left, + li>.left { + width: 80%; + + text-align: left; + flex: 1; + padding-left: 20px; + } + + .right, + li>.right { + width: 80%; + text-align: right; + flex: 1; + padding-right: 20px; + } + + li>.left, + li>.right { + flex: 1; + display: inline-block; + } + + .active { + background-color: red; + color: #fff; + } + + [v-cloak] { + display: none; + } \ No newline at end of file diff --git a/08-综合练习/商品列表/index/index.html b/08-综合练习/商品列表/index/index.html index 0f71124..6feb3e0 100644 --- a/08-综合练习/商品列表/index/index.html +++ b/08-综合练习/商品列表/index/index.html @@ -5,68 +5,7 @@