首页 新闻 会员 周边

异常棘手,高手请进,先谢谢大家了

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

我要做的是在ipad上在网页中打开ppt or doc file ,网页是用sencha touch 做的,我是用下面的代码实现的,但是遇到了一个棘手的问题,就是如图所示,打开的文件不能够站慢整个iframe.不知道该如何解答

主要实现代码如下,fileUrl是当前浏览文件的地址,比如:http://******/&*&^&/pptfile.ppt

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

       var 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: [
                    {
                        iconMask: true,
                        ui: 'back',
                        iconCls: 'reply',
                        handler: function () {
                            location.reload();
                        }
                    },
                    {
                        xtype: 'spacer'
                    }
                ]
            }],
            hideOnMaskTap: false,
            stopMaskTapEvent: false,
            fullscreen: false,
            html: html
        });

        reportPanel.setCentered(true);
        reportPanel.show('pop');
阿磊ing的主页 阿磊ing | 初学一级 | 园豆:2
提问于:2013-08-08 10:28
< >
分享
所有回答(1)
0

帮顶,希望楼主能找到答案

幕三少 | 园豆:1384 (小虾三级) | 2013-08-11 14:45
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册