Document
.grid{
margin: auto;
width: 500px;
text-align: center;
}
.grid table {
width: 100%
border-collapse : collapse /*这里的","还一直报错*/
}
.grid th,td{
padding: 10;
border: 1px dashed orange;
height: 35px;
line-height: 35px;
}
.grid th {
background-color: orange;
}
/*
*/
var app = new Vue({
el:'#app',
data: {
books:[{
id: 1,
name: '东',
date: ''
},{
id: 2,
name: '西',
date: ''
},{
id: 3,
name: '南',
date: ''
},{
id: 4,
name: '北',
date: ''
}]
}
});