Coder Social home page Coder Social logo

页面出现空白 about js-screen-shot HOT 7 CLOSED

zyf-2016 avatar zyf-2016 commented on August 23, 2024
页面出现空白

from js-screen-shot.

Comments (7)

likaia avatar likaia commented on August 23, 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区域通知你。

from js-screen-shot.

likaia avatar likaia commented on August 23, 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

页面是缩放了吗?

from js-screen-shot.

zyf-2016 avatar zyf-2016 commented on August 23, 2024

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

from js-screen-shot.

likaia avatar likaia commented on August 23, 2024

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

代码贴一下,我试试

from js-screen-shot.

zyf-2016 avatar zyf-2016 commented on August 23, 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>

from js-screen-shot.

zyf-2016 avatar zyf-2016 commented on August 23, 2024

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

from js-screen-shot.

zyf-2016 avatar zyf-2016 commented on August 23, 2024

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

from js-screen-shot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.