官网示例:https://vuejs.org/v2/guide/class-and-style.html
<div v-bind:style="{ color: activeColor, fontSize: fontSize + 'px' }"></div>
:style="{height:pageH + 'px',maxHeight:pageMaxH + 'px' }"
<div v-bind:style="styleObject"></div>
data: {
styleObject: {
color: 'red',
fontSize: '13px'
}
}
<div v-bind:style="{ display: ['-webkit-box', '-ms-flexbox', 'flex'] }"></div>