- 选中元素,选择 inspect。
- 切换 chrome 找到 computed 标签页。
- 拖动 computed 滚动到最下方。
- 查看 Rendered Fonts: 你会看到渲染的到底是什么字体。
Tag: webdev
2 notes found.
开发的时候遇到右侧由于有些页面有滚动条,有些没有导致同一个布局会出现布局偏移。
添加 scrollbar-gutter: stable; 就可以避免此问题。
参考链接:https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/scrollbar-gutter