Skip to content
New issue

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

> 请问各位大佬,文章里 “将频繁重绘或者回流的节点设置为图层,图层能够阻止该节点的渲染行为影响别的节点。比如对于 video 标签来说,浏览器会自动将该节点变为图层。” 这句话中的图层是什么意思呢?我在百度上搜了好久,没找到答案,请各位大佬赐教了,谢谢 #90

Closed
ZhuZicai opened this issue Mar 12, 2021 · 5 comments

Comments

@ZhuZicai
Copy link

请问各位大佬,文章里 “将频繁重绘或者回流的节点设置为图层,图层能够阻止该节点的渲染行为影响别的节点。比如对于 video 标签来说,浏览器会自动将该节点变为图层。” 这句话中的图层是什么意思呢?我在百度上搜了好久,没找到答案,请各位大佬赐教了,谢谢
浏览器->F12->设置->Layers ->你可以进行360°操作。(找有轮播的页面查看,你会看到一层一层。这就是浏览器在渲染的时候产生的图层。)图层的实现可以有多种方式大多是靠css设置。

Originally posted by @752337625 in #51 (comment)

@ZhuZicai
Copy link
Author

再打扰一下,我在F12的设置中,没有看到Layers呢。你看我找的地方对吗?谢谢
2021-03-12_142454
2021-03-12_142129

@752337625
Copy link

image

@752337625
Copy link

image

@ZhuZicai
Copy link
Author

对不起,再次叨扰了。请问如何将html里边的阶段变为图层。我在网上也没扫到,请问应该搜哪些关键字呢?你有没有推荐的文章?还望贵人再次指教了,谢谢

@752337625
Copy link

752337625 commented Mar 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants