diff --git a/src/guide/essentials/class-and-style.md b/src/guide/essentials/class-and-style.md index 08d6e958e8..f8ffed4d65 100644 --- a/src/guide/essentials/class-and-style.md +++ b/src/guide/essentials/class-and-style.md @@ -323,6 +323,20 @@ data() { Again, object style binding is often used in conjunction with computed properties that return objects. +`:style` directives can also coexist with regular style attributes, just like `:class`. + +Template: + +```vue-html +

hello

+``` + +It will render: + +```vue-html +

hello

+``` + ### Binding to Arrays {#binding-to-arrays-1} We can bind `:style` to an array of multiple style objects. These objects will be merged and applied to the same element: