pc端横向无缝滚动公告

<marquee onMouseOut="this.start()" onMouseOver="this.stop()">
        <p
          class="inline-block"
          v-for="(item, index) in newsList"
          @click="opentInfo(item)"
          :key="item + index"
        >
          {{ item.detail }}
        </p>
        <p v-if="newsList.length == 0" @click="opentInfo(newsList1)" class="inline-block">暂无信息</p>
      </marquee>

你可能感兴趣的:(Vue,vue.js,javascript)