Skip to content

Commit 80d7288

Browse files
authored
Merge pull request #1084 from csl991005/patch-1
Update class-and-style.md
1 parent b99bfea commit 80d7288

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/guide/essentials/class-and-style.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,16 +314,16 @@ data() {
314314
```
315315

316316
同样的,如果样式对象需要更复杂的逻辑,也可以使用返回样式对象的计算属性。
317-
<!-- TODO: translation -->
318-
`:style` directives can also coexist with regular style attributes, just like `:class`.
319317

320-
Template:
318+
`:style` 指令也可以和常规的 style attribute 共存,就像 `:class`.
319+
320+
模板:
321321

322322
```vue-html
323323
<h1 style="color: red" :style="'font-size: 1em'">hello</h1>
324324
```
325325

326-
It will render:
326+
这将被渲染为:
327327

328328
```vue-html
329329
<h1 style="color: red; font-size: 1em;">hello</h1>

0 commit comments

Comments
 (0)