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

页面出现空白 #153

Closed
zyf-2016 opened this issue Feb 28, 2024 · 7 comments
Closed

页面出现空白 #153

zyf-2016 opened this issue Feb 28, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@zyf-2016
Copy link

Version of js-screen-shot

1.9.9-rc.11

Operating system and its version

Windows

Browser and its version

Google Chrome 122.0.6261.70

Sandbox to reproduce

No response

What happened?

1709118803552

用的html2canvas模式,理论上截图应该都是天蓝色背景,但是右边出现了空白

报错信息

No response

@zyf-2016 zyf-2016 added the bug Something isn't working label Feb 28, 2024
@likaia
Copy link
Owner

likaia commented Feb 28, 2024

Hello @zyf-2016. Your feedback has been received, and you will be notified in the issue area when the problem is resolved.
你好 @zyf-2016,已收到你反馈的问题,问题解决后将在issue区域通知你。

@likaia
Copy link
Owner

likaia commented Feb 29, 2024

Version of js-screen-shot

1.9.9-rc.11

Operating system and its version

Windows

Browser and its version

Google Chrome 122.0.6261.70

Sandbox to reproduce

No response

What happened?

1709118803552

用的html2canvas模式,理论上截图应该都是天蓝色背景,但是右边出现了空白

报错信息

No response

页面是缩放了吗?

@zyf-2016
Copy link
Author

是的,浏览器缩放设置的是100%。页面就是一个div元素宽高100%,用chrome浏览器100%复现,edge浏览器是正常的

@likaia
Copy link
Owner

likaia commented Feb 29, 2024

是的,浏览器缩放设置的是100%。页面就是一个div元素宽高100%,用chrome浏览器100%复现,edge浏览器是正常的

代码贴一下,我试试

@zyf-2016
Copy link
Author

zyf-2016 commented Mar 1, 2024

<template>
    <div style="width:100vw;height:100vh;background:skyblue"></div>
</template>

<script setup lang="ts">
import ScreenShot from "js-web-screen-shot";
import { onMounted } from "vue";
onMounted(() => {
    new ScreenShot({
        enableWebRtc: false
    })
})
</script>

@zyf-2016
Copy link
Author

zyf-2016 commented Mar 1, 2024

chrome 121.0.6167.140版本也是正常的,应该是浏览器版本兼容问题

@zyf-2016
Copy link
Author

zyf-2016 commented Mar 1, 2024

不好意思,是我自己安装的扩展程序导致的,浪费您时间了

@zyf-2016 zyf-2016 closed this as completed Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants