<template> <ul class="container"> <li v-for="(item,index) in datalist" :key="index"> {{item.text}}<span></span> </li> </ul> </template> <script> export default{ props:{}, data(){ return { datalist:[ { id:1, text:'Shandong' }, { id:2, text:'Beijing' }, { id:3, text:'Shaanxi' }, { id:4, text:'Chongqing' } ] } }, components:{}, methods:{}, mounted(){}, created(){}, watch:{} } </script> <style scoped lang="scss"> .container{ display: flex; li{ position: relative; width: 40px; height: 20px; font-size: 14px; font-weight: 300; text-align: center; line-height: 20px; span{ display: inline-block; position: absolute; width: 1px; height: 50%; right: 0; top: 50%; transform: translateY(-50%); background-color: #EEEEEE; } &:last-child{ //Note here, the method to eliminate the last gray line span{ width: 0; } } } } </style> You may also be interested in:
|
<<: Docker renames the image name and TAG operation
>>: A brief analysis of SQL examples for finding uncommitted transactions in MySQL
As shown below: SELECT count(DISTINCT(a.rect_id))...
In a complex table structure, some cells span mul...
1. Implementation ideas The purpose of interface ...
Table of contents 1. Data Manipulation Language (...
Table of contents Docker custom network 1. Introd...
This article shares with you the detailed install...
Development Background: Recently, I am working on...
1. Refer to the official website to install docke...
1. Log in to MySQL database mysql -u root -p View...
Preface Recently connected to mysql /usr/local/my...
To facilitate the maintenance of MySQL, a script ...
Table of contents 1. Introduction 2. Code Impleme...
html <div class="totop" v-show="...
Table of contents 1. Some points to remember 1. V...
I have been taking a lot of MySQL notes recently,...