Commit 1a283eddf6c68267cb50767055bcca9fa9905f7d
1 parent
ec02e845
样式优化
Showing
1 changed file
with
10 additions
and
4 deletions
src/components/swiperItem/swiperItem.less
| ... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 | overflow: hidden; |
| 8 | 8 | .swipe { |
| 9 | 9 | margin: 0 auto; |
| 10 | - width: 690px; | |
| 10 | + width: 670px; | |
| 11 | 11 | height: 100%; |
| 12 | 12 | .swipe-item { |
| 13 | 13 | width: 100%; |
| ... | ... | @@ -20,12 +20,12 @@ |
| 20 | 20 | flex-wrap: wrap; |
| 21 | 21 | justify-content: flex-start; |
| 22 | 22 | div{ |
| 23 | - margin-top: 40px; | |
| 23 | + margin-top:40px; | |
| 24 | 24 | img{ |
| 25 | 25 | width:90px; |
| 26 | 26 | height: 90px; |
| 27 | 27 | border-radius: 90px; |
| 28 | - margin: 0 48px; | |
| 28 | + margin:0 26px; | |
| 29 | 29 | } |
| 30 | 30 | div{ |
| 31 | 31 | height:30px; |
| ... | ... | @@ -34,9 +34,15 @@ |
| 34 | 34 | color:rgba(74,74,74,1); |
| 35 | 35 | line-height:30px; |
| 36 | 36 | text-align: center; |
| 37 | - margin: 10px 0 0 0; | |
| 37 | + margin-top: 10px; | |
| 38 | 38 | } |
| 39 | 39 | } |
| 40 | + div:nth-child(1) img, div:nth-child(6) img{ | |
| 41 | + margin-left: 0px; | |
| 42 | + } | |
| 43 | + div:nth-child(5) img, div:nth-child(10) img{ | |
| 44 | + margin-right: 0px; | |
| 45 | + } | |
| 40 | 46 | } |
| 41 | 47 | } |
| 42 | 48 | } | ... | ... |