[Vuejs]-The table border-bottom disappear?

1👍

table-row-group does not work with divs you can change the whole layout and use tables or instead you can do it like this.

.list-view-item {
        padding: 5px;
        color: #666;
        display: table;
        line-height: 30px;
        box-sizing: border-box;
        border-bottom: 1px solid red;
        min-width: 100vw;
    }

.list-view-item-col {
    display: table-cell;
    min-width: 50px;
}

jsfiddle for table-row-group

Hope it helps.

0👍

Use display :flex for list-view-item class, Try with following code.Hope it will work fine for you.

.list-view-item {
  padding: 5px;
  color: #666;
  display: flex;
  flex-basis: 100%;
  flex-direction: row;
  line-height: 30px;
  box-sizing: border-box;
  border-bottom: 1px solid red;
}
👤B2725

0👍

Try with this CSS. I hope it will works for you.

 .list-view-item {
    padding: 5px;
      color: #666;
      display:table;
      line-height: 30px;
      box-sizing: border-box;
      border-bottom: 1px solid green;
    }

0👍

.list-view-item {
  padding: 5px;
  color: #666;
  display: flex;
  flex-basis: 100%;
  flex-direction: row;
  line-height: 30px;
  box-sizing: border-box;
  border-bottom: 1px solid red;
}

0👍

I try to change the js code :

this.$refs.content.style.transform = `translateY(0, ${ start * this.itemHeight }px, 0)`;

to :

this.$refs.content.style.transform = `translateY(${ start * this.itemHeight }px)`;

and add a css to div class is list-view:

transform:translateY(0)px;

then the border showed.

don’t understand why this action work!

Leave a comment