【问题标题】:context.drawWindow in chrome equivalentchrome 中的 context.drawWindow 等价物
【发布时间】:2013-02-12 15:33:10
【问题描述】:

我知道只有firefox扩展了canvas对象以包含context.drawWindow方法,有没有已知的程序来完成这个方法在chrome中的作用?

【问题讨论】:

    标签: google-chrome firefox canvas google-chrome-extension html5-canvas


    【解决方案1】:

    您可以通过创建一个包含 HTML 的 foreignObject 来使用 svg 在 Canvas 内渲染 DOM。

    这是一个为您完成工作的库:

    http://pbakaus.github.com/domvas/

    【讨论】:

    • 我敢肯定这是最接近没有拖网 API 的,但它对大多数人来说确实不够好用。
    • 是的,DOMVAS 不允许在 dom 元素中渲染图像
    猜你喜欢
    • 1970-01-01
    • 2019-11-03
    • 1970-01-01
    • 2012-05-24
    • 2020-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-19
    相关资源
    最近更新 更多