We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2647b0b commit ce6794dCopy full SHA for ce6794d
src/guide/essentials/class-and-style.md
@@ -323,6 +323,20 @@ data() {
323
324
スタイルへのオブジェクトのバインディングも、オブジェクトを返す算出プロパティと組み合わせて使用することが多くあります。
325
326
+`:class` と同様、`:style` ディレクティブは通常の style 属性と共存させることもできます。
327
+
328
+テンプレート:
329
330
+```vue-html
331
+<h1 style="color: red" :style="'font-size: 1em'">hello</h1>
332
+```
333
334
+レンダリング結果:
335
336
337
+<h1 style="color: red; font-size: 1em;">hello</h1>
338
339
340
### 配列へのバインディング {#binding-to-arrays-1}
341
342
`:style` は、複数のスタイルオブジェクトからなる配列にバインドすることができます。各オブジェクトはマージされ、同じ要素に適用されます:
0 commit comments