如何将一个 HTML 文件加载到画布中?
为此,你可以使用 SVG <foreignObject> 元素。我们看一个例子
<svg xmlns = "http://www.w3.org/2000/svg"> <foreignObject x = "0" y = "0" height = "500" width = "500"> <body xmlns = "http://www.w3.org/1999/xhtml"> <p>DEMO</p> <input type = "date"/> </body> </foreignObject> </svg>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP