v-bind动态绑定style的对象语法 改变某个页面时,需要根据不同页面,改变不同的背景颜色或者字体大小,会偶尔用到 示例 <div id="app"> <h1 :style="{fontSize : finalSize + 'px'}">{ { message}}