如何將 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