PPAPI插件支持动态创建/修改/删除组件
发布时间
阅读量:
阅读量
在完成PPAPI插件的开发后,实际应用过程中可能会遇到以下几种操作需求:
- 实时生成PPAPI插件
- 移除PPAPI插件
- 调整PPAPI插件的大小
此类功能的实现方式较为简便,只需通过JavaScript直接调用DOM(BOM)接口即可。以下提供一个示例HTML文件供参考:
<!DOCTYPE html>
<html>
<!--
Copyright (c) 2016 foruok@微信订阅号“程序视界”(programmer_sight).
All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<head>
<style type="text/css">
#pluginContainer
{
padding: 0px;
width: 1220px;
height: 540px;
background-color: gray;
}
</style>
全部评论 (0)
还没有任何评论哟~
