doc: update docs/css.md
This commit is contained in:
parent
850fcfae54
commit
e7d8b4aac6
11
docs/css.md
11
docs/css.md
@ -1468,6 +1468,17 @@ html {
|
||||
|
||||
[点击我](#入门)页面会平滑滚动到入门
|
||||
|
||||
### 修改浏览器自动填充 input 样式
|
||||
|
||||
```css
|
||||
input[type="text"]:autofill {
|
||||
box-shadow: 0 0 0 1000px #000 inset;
|
||||
-webkit-text-fill-color: white;
|
||||
}
|
||||
```
|
||||
|
||||
另见: [:autofill](https://developer.mozilla.org/en-US/docs/Web/CSS/:autofill)
|
||||
|
||||
### 忽略用作间距的换行符 \<br />
|
||||
|
||||
```css
|
||||
|
Loading…
x
Reference in New Issue
Block a user