<div class="Ditem" :style="{width:movie_width+'rem'}"></div>
mounted () {
this.movie_width = this.movieslist.length * 4.16
},
.Ditem {
height: 2.4rem;
display: flex;
justify-content: space-between;
}
<div class="Ditem" :style="{width:movie_width+'rem'}"></div>
mounted () {
this.movie_width = this.movieslist.length * 4.16
},
.Ditem {
height: 2.4rem;
display: flex;
justify-content: space-between;
}