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 b99bfea commit 80d7288Copy full SHA for 80d7288
src/guide/essentials/class-and-style.md
@@ -314,16 +314,16 @@ data() {
314
```
315
316
同样的,如果样式对象需要更复杂的逻辑,也可以使用返回样式对象的计算属性。
317
-<!-- TODO: translation -->
318
-`:style` directives can also coexist with regular style attributes, just like `:class`.
319
320
-Template:
+`:style` 指令也可以和常规的 style attribute 共存,就像 `:class`.
+
+模板:
321
322
```vue-html
323
<h1 style="color: red" :style="'font-size: 1em'">hello</h1>
324
325
326
-It will render:
+这将被渲染为:
327
328
329
<h1 style="color: red; font-size: 1em;">hello</h1>
0 commit comments