旧版浏览器通过 Javascript 支持 HTML 5 特定元素?

发布于 2024-08-19 09:20:56 字数 154 浏览 3 评论 0原文

是否有 JavaScript 解决方案可以使 HTML5 中的 canvas 标签或视频标签在不支持它的旧/当前浏览器中表现得更像 HTML5?

理想情况下,canvas 标签的行为应与支持 HTML5 的浏览器中的行为类似,但如果将 video 标签替换为替代代码,它也很好。

Is there a javascript solution to make the canvas tag or the video tag in HTML5 behave more like HTML5 in older/current browsers that don't support it?

The canvas tag should ideally behave like the it would in HTML5 supportive browsers, but the video tag is also good if it's replaced with alternate code.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁许谁一生繁华 2024-08-26 09:20:56

您可以通过此库在 Internet Explorer 中使用画布。还有这个库可以对一般的 HTML 5 执行相同的操作,这个用于在画布上绘制文本。 这里是 GWT 的画布库(当然会编译为 JavaScript)。

编辑: 这是一个库,用于向旧版本添加 svg 支持浏览器。

You can use the canvas in Internet Explorer using this library. There is also this library for doing the same with HTML 5 in general and this one for drawing text on a canvas. Here is a canvas library for GWT (which of course gets compiled to javascript).

Edit: Here is a library to add svg support to older browsers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文