We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.x
无
进入文章无法显示阅读进度条。
排查步骤: 1、pace的js和css正常加载; 2、搜索主题文件找到pace的调用Pace.bar.update(volantis.scroll.progress() * 100)中的volantis.scroll.progress()的值存在问题,一直是Infinity 3、调试发现volantis.scroll.scrollHeight()和volantis.scroll.offsetHeight()一直相等,但两函数实现并无问题,应该是body样式问题导致无法获取offsetHeight的真实高度 4、body中搜索height样式,只有继承html的height,尝试加入属性height: 100%;,正常显示。
Pace.bar.update(volantis.scroll.progress() * 100)
volantis.scroll.progress()
Infinity
volantis.scroll.scrollHeight()
volantis.scroll.offsetHeight()
height: 100%;
theme: volantis
默认配置
v18.19.0 9.2.0
[email protected] /workspace/project/blog ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected]
The text was updated successfully, but these errors were encountered:
不知道是不是我自己环境的问题,但是我看到官方主页body也是有height属性的,建议在body样式里加入height: 100%;
body
Sorry, something went wrong.
No branches or pull requests
检查清单
主题版本
6.x
复现地址
无
问题描述
进入文章无法显示阅读进度条。
排查步骤:
1、pace的js和css正常加载;
2、搜索主题文件找到pace的调用
Pace.bar.update(volantis.scroll.progress() * 100)
中的volantis.scroll.progress()
的值存在问题,一直是Infinity
3、调试发现
volantis.scroll.scrollHeight()
和volantis.scroll.offsetHeight()
一直相等,但两函数实现并无问题,应该是body样式问题导致无法获取offsetHeight的真实高度4、body中搜索height样式,只有继承html的height,尝试加入属性
height: 100%;
,正常显示。配置文件
站点配置文件
主题配置文件
默认配置
环境信息
node.js & npm
package.json
The text was updated successfully, but these errors were encountered: