简单用法 <div v-bind:height="bindStyle"> 复杂用法 <div v-bind:style="bindStyle"> </div> data:{ tabsHeight:100, } computed: { //bindStyle: function () { // return { // 'height': '' + this.tabsHeight + 'px', //这里写你需要的任何样式 // 'overflowY': 'auto', // 'loverflowX': 'hidden' // } //} },