首页 新闻 会员 周边

在网页中显示ppt文件

0
悬赏园豆:15 [已关闭问题] 关闭于 2013-08-12 09:09

我要做的是在ipad上通过网页显示一个office文件,用的是sencha touch。用来显示ppt的代码如下:其中fileUrl是ppt的所在地址,用这个是可以打开ppt的,但是打开的ppt无法占满整个iframe框架,只占了一半大小,请问高手如何解决呢

var html = '<iframe width="1024" height="680" frameborder="0" scrolling="yes" src="' + fileUrl + '"></iframe>';


        reportPanel = new Ext.Panel({
            floating: true,
            modal: true,
            centered: true,
            id: 'reportPanel',
            width: 1024,
            height: height + 50,
            //scroll: 'vertical',
            dockedItems: [{
                xtype: 'toolbar',
                dock: 'top',
                items: [
                    {
                        xtype: 'button',
                        text: "Back",
                        width: 70,
                        ui: 'back',
                        handler: function () {
                            location.reload();
                        }
                    },
                    {
                        xtype: 'spacer'
                    }
                ]
            }],
            hideOnMaskTap: false,
            stopMaskTapEvent: false,
            fullscreen: false,
            html: html
        });
阿磊ing的主页 阿磊ing | 初学一级 | 园豆:2
提问于:2013-07-22 16:14
< >
分享
所有回答(0)
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册