recommend-content-five.vue
889 Bytes
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
<template>
<div class="recommend-content-five">
<a v-for="item in floor" :key="item.src" v-blk-href="item.url" :title="item.title">
<img v-img-src="{src: item.src, width: 375, height: 375}">
</a>
</div>
</template>
<script>
export default {
props: ['floor']
};
</script>
<style>
.recommend-content-five {
width: 100%;
font-size: 0;
a {
display: inline-block;
width: 46%;
/* height: 375px; */
margin-bottom: 20px;
&:nth-child(odd) {
margin-left: 2.6%;
margin-right: 1.3%;
}
&:nth-child(even) {
margin-left: 1.3%;
margin-right: 2.6%;
}
}
img {
width: 100%;
/* height: 100%; */
}
}
</style>