s2e30 element style with array
This commit is contained in:
parent
73b096560c
commit
8d5c1a2edf
|
@ -7,9 +7,9 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id='app'>
|
<div id='app'>
|
||||||
|
<div class="demo" :style="{backgroundColor: color}"></div>
|
||||||
<div class="demo" :style="myStyle"></div>
|
<div class="demo" :style="myStyle"></div>
|
||||||
<div class="demo"></div>
|
<div class="demo" :style="[myStyle, {height: width + 'px'}]"></div>
|
||||||
<div class="demo"></div>
|
|
||||||
<hr>
|
<hr>
|
||||||
<input type="text" v-model="color">
|
<input type="text" v-model="color">
|
||||||
<input type="text" v-model="width">
|
<input type="text" v-model="width">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user