Skip to content

Git操作 提交issues

bin4xin edited this page Apr 29, 2022 · 1 revision

ISSUES提交规范

### 现象描述

`./_includes/nav.html`对应web导航栏,其中:

- `火狐 V95.0.2 (64-bit)`下滑无法置顶导航栏;
- `Chrome/safari`可以置顶导航栏;

![issues.gif](https://s2.loli.net/2022/01/04/XZCu2fKjvGydTow.gif)

### 尝试解决

1. 我第一时间去查看了[TUNA-moe](https://tuna.moe/)的页面,进行FF和Chrome对比发现两款不同内核浏览器显示正常,均可显示导航栏置顶;
2. 我便思考:是不是自己定制化修改了部分[`_includes/nav.html`](https://github.com/Bin4xin/bin4xin.github.io/blob/main/_includes/nav.html)代码导致了此现象,便查看并使用了[TUNA源码仓库](https://github.com/tuna/tuna.moe)对应的[`_includes/nav.html`](https://raw.githubusercontent.com/tuna/tuna.moe/master/_includes/nav.html)源码并尝试本地编译,发现依然存在无法置顶的现象;
3. 排除了JS置顶的可能性(烦请核查),我尝试在chrome中将所有JS 监听事件全部移除,发现导航仍然置顶,如下图两边页面均导航栏置顶,故排除;

![截屏2022-01-04 下午5.14.41.png](https://s2.loli.net/2022/01/04/hk79v4Rj8GFep2I.png)

### 猜测原因

1. [ ] chrome内核的浏览器与FF内核浏览器显示兼容性问题导致;
2. [ ] 源码问题;这里仓库代码是使用[TUNA源码仓库](https://github.com/tuna/tuna.moe)进行生成,期间因个性化建站加入了一些定制化CSS、JS,详见[CHANGELOG](https://github.com/Bin4xin/bin4xin.github.io/blob/main/CHANGELOG.md);