doc: update docs/css.md

This commit is contained in:
jaywcjlove 2023-04-18 10:53:08 +08:00
parent 850fcfae54
commit e7d8b4aac6

View File

@ -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