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

使用transform: scale(0.5);缩放后会导致结果不正确 #101

Open
LiuXIn011 opened this issue Nov 14, 2024 · 0 comments
Open

使用transform: scale(0.5);缩放后会导致结果不正确 #101

LiuXIn011 opened this issue Nov 14, 2024 · 0 comments

Comments

@LiuXIn011
Copy link

正常渲染结果:
image

htmltocanvas后的结果:
image

版本:"html2canvas-pro": "^1.5.8",

附代码:

<template>
  <div class="app-view">
    <div class="box-view"></div>
  </div>
</template>

<script setup></script>

<style lang="scss" scoped>
.app-view {
  background-color: #333;
  transform: scale(0.5);
  transform-origin: left top;
  width: 1920px;
  height: 1080px;
  .box-view {
    width: 25%;
    height: 100%;
    background-color: #999;
    left: 0;
    top: 0;
    position: absolute;
  }
}
</style>

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

1 participant