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

foreignObject会随着svg一起缩放吗 #82

Open
ckinmind opened this issue Mar 7, 2018 · 0 comments
Open

foreignObject会随着svg一起缩放吗 #82

ckinmind opened this issue Mar 7, 2018 · 0 comments
Labels

Comments

@ckinmind
Copy link
Owner

ckinmind commented Mar 7, 2018

经过测试又如下结论:

  • foreignObject中写正常的html会随着html一起缩放
  • foreignObject中如果有绝对定位相对定位会有很大的问题(有问题的那个例子有一点是外层svg也是绝对定位, 这个svg浮在一个canvas之上,暂时不清楚是否有这个影响)
  • foreignObject中写htm了,如果需要12号以下字体,如果使用transform: scale来缩放会有很大的问题,正常html中可以这个得到12px以下字体,很奇怪
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant