Skip to content

Commit

Permalink
zh-cn: correct the example in CSS @layer (#23826)
Browse files Browse the repository at this point in the history
Co-authored-by: A1lo <[email protected]>
  • Loading branch information
typenoob and yin1999 authored Sep 30, 2024
1 parent 614e444 commit 2cc0603
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions files/zh-cn/web/css/@layer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ p {

```html
<div class="item">
I am displayed in <code>color: rebeccapurple</code> because the
<code>type</code> layer comes after the <code>base</code> layer. My green
border, font-size, and padding come from the <code>base</code> layer.
我以 <code>color: rebeccapurple</code> 的样式显示,因为
<code>special</code> 层定义在 <code>base</code>
层之后。我的绿色边框、font-size 和内边距来自于
<code>base</code> 层。
</div>
```

Expand Down

0 comments on commit 2cc0603

Please sign in to comment.