一路繁花似锦绣前程
失败的越多,成功才越有价值

导航

 
<template>
  <div class="outer">
    <div class="inner" v-for="item of 3" :key="item"></div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  setup() {
    return {}
  }
})
</script>

<style lang="scss" scoped>
.outer {
  width: 300px;
  display: flex;
  border: 1px solid black;
  overflow-x: auto;
  padding-left: 20px;
}

.outer:after {
  content: '.';
  visibility: hidden;
  margin-left: -0.24em;
}

.inner {
  width: 160px;
  height: 180px;
  border: 1px solid red;
  flex: none;
  margin-right: 20px;
}
</style>
posted on 2022-07-10 12:19  一路繁花似锦绣前程  阅读(205)  评论(0编辑  收藏  举报