yjanb11

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

 

在Office Web APP的预览会涉及4中类型的文 件:Word、Excel、PowerPoint、PDF,
不同的类型在预览时调用的文件是不一样的,
其中Word和 PDF调用的是同一个文件。每个预览的页面都有对应的CSS文件,如下:
PowerPoint
C:\Program Files\Microsoft Office Web Apps\WebPPTViewer\pptresources\2052\styleread.css
Word
C:\Program Files\Microsoft Office Web Apps\WebWordViewer\Resources\2052\WordViewer.css
Excel
C:\Program Files\Microsoft Office Web Apps\ExcelServicesWfe\_layouts\styles\excelribbon.css
在上面的三个css文件中找到div.WACScroller,在css样式中追加pointer-events: none;

 

div.WACScroller{width:100%;height:100%;margin-left:auto;margin-right:auto;pointer-events: none;}

 

以上方法IE10以下无法生效

 

 

可以在/op/view.aspx 增加一个蒙板,也可以实现

<div class="mask1" style="position: absolute;left: 0px;top: 0px;bottom: 0px;display: block;background: rgba(0, 0, 0, 0);width:98%;height:100%;z-index:99999;margin-right:30px;"></div>

posted on 2019-09-24 08:39  yjanb11  阅读(516)  评论(0编辑  收藏  举报