0

我正在为我的应用程序使用 pdfjs_rails gem ( https://github.com/shyammohankanojia/pdfjs_rails )

问题是,我看不到“演示模式”按钮。
我需要能够全屏查看文件。
我像这样渲染我的pdf查看器:

%iframe{ frameborder: "0", height: "500", scrolling: "no", src: "/pdfjs/web/viewer.html?file=#{file}", style: "border: 0", width: "100%" }

在此处输入图像描述

谢谢

编辑
根据@CodeMaker 的回答,我使用了:

%iframe{ frameborder: "0", height: "500", scrolling: "no", src: "/pdfjs/web/viewer.html?file=#{file}", style: "border: 0", width: "100%", webkitallowfullscreen: "", mozallowfullscreen: "", allowfullscreen: "" }
4

1 回答 1

1

对于 pdf_rails 使用这个

%iframe{ frameborder: "0", height: "500", scrolling: "no", src: "/pdfjs/web/viewer.html?file=#{file}", style="width: 100%; height: 1100px; display:inline-block "  scrolling="yes" webkitallowfullscreen mozallowfullscreen allowfullscreen frameborder="no" }
于 2016-06-24T04:54:26.967 回答