Skip to content

Commit

Permalink
doc: update css.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 6, 2022
1 parent 3dd01e3 commit c1fbb99
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions docs/css.md
Original file line number Diff line number Diff line change
Expand Up @@ -1487,6 +1487,7 @@ br + br {
```

### CSS 重置
<!--rehype:wrap-class=row-span-2-->

```css
html {
Expand All @@ -1501,6 +1502,25 @@ html {

有助于在不同的浏览器之间强制样式一致性,并为样式元素提供干净的盒子

### 设置光标样式

```css
body {
caret-color: red;
}
```

### 设置整个页面灰色
<!--rehype:wrap-style=-webkit-filter: grayscale(.95);-->

```css
html {
-webkit-filter: grayscale(.95);
}
```

上面示例设置了当前卡片灰色

### 使用图像作为光标

```css
Expand Down Expand Up @@ -1632,14 +1652,6 @@ div {

属性 [aspect-ratio](https://developer.mozilla.org/zh-CN/docs/Web/CSS/aspect-ratio) 可以非常容易的定义一个容器的长宽比

### 设置光标样式

```css
body {
caret-color: red;
}
```

另见
---------

Expand Down

0 comments on commit c1fbb99

Please sign in to comment.