图
在引用页面设置总宽度
<template>
<div>
<v-foodList style="width:1000px;"></v-foodList>
</div>
</template>
<script>
import foodList from '../../components/FoodList/foodList.vue'
export default {
components:{
'v-foodList':foodList,
}
}
</script>
设置clac
<div class="rows5">
<span class="marks marks-juan"></span>17代20元
</div>
<div class="rows6">
<span class="marks marks-tuan"></span>78元2-3人餐
</div>
.rows5 {
font-size: 13px;
line-height: 40px;
border-top: 1px solid rgb(225, 225, 225);
border-bottom: 1px solid rgb(225, 225, 225);
width: calc(500%);
}
.rows6 {
font-size: 13px;
line-height: 40px;
width: calc(500%);
}
这是我自己摸索出来的方法,如果大家还有别的方法,还请多多指教