Skip to content

Commit

Permalink
feat: 添加笔记
Browse files Browse the repository at this point in the history
  • Loading branch information
fxzer committed Jul 21, 2024
1 parent 42903f3 commit dd05229
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/Interview/CSS/基础面试题.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@

**黏性定位**`sticky`:相对于*最近滚动祖先*定位,滚动到元素top小于设定值(top:20px;)则转为固定定位。(relative+fixed)

## `z-index` 不生效
1. 父元素没有定位(position: static)时
2. `z-index` 同时设置了 `float`

## 隐藏元素的方式

![image-20230221172950214](https://zerdocs.oss-cn-shanghai.aliyuncs.com/febasis/202302211729743.png){data-zoomable}
Expand Down

0 comments on commit dd05229

Please sign in to comment.