_product-list.css
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* @Author: Targaryen
* @Date: 2017-05-03 14:08:52
* @Last Modified by: Targaryen
* @Last Modified time: 2017-05-27 14:53:10
*/
.guang-list-page {
.product-list-box {
width: 100%;
margin-top: 40px;
padding: 0 20px;
overflow-x: scroll;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
}
.product-list {
height: 138px;
overflow-y: hidden;
.goods-box {
width: 320px;
height: 138px;
border-radius: 8px;
float: left;
margin-right: 20px;
background-color: #f0f0f0;
}
.goods-box > .goods-img {
width: 106px;
height: 138px;
float: left;
img {
border-bottom-left-radius: 8px;
border-top-left-radius: 8px;
width: 100%;
height: 100%;
}
}
.goods-box > .goods-info {
width: 214px;
height: 138px;
padding: 16px;
float: left;
.title {
font-size: 22px;
color: #444;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.price {
color: #d0021b;
font-size: 20px;
margin-top: 20px;
}
}
}
}