使用iFrame在iOS中滚动PDF

时间:2016-09-15 14:12:25

标签: java html ios pdf scroll

我正在尝试滚动此pdf:ifcharts.ml/KSAN.html

到目前为止我已经得到了这个:

  <section class="features section-padding" id="features">
    <div class="container">
        <div class="row">
            <div class="feature-list">
                <h3>San Diego</h3>
                <p>Departure</p>
                  <div>
                  <iframe class="js/scroll-wrapper.js" src="http://flightaware.com/resources/airport/SAN/APD/AIRPORT+DIAGRAM/pdf" width="600" height="700"></iframe>
                    <iframe class="js/scroll-wrapper.js" src="https://flightaware.com/resources/airport/KSAN/DP/all/pdf" width="600" height="700"></iframe>
                  </div>
                <p>Approach</p>
                  <div>
                    <iframe class="js/scroll-wrapper.js" src="https://flightaware.com/resources/airport/KSAN/STAR/all/pdf" width="600" height="700"></iframe>
                    <iframe class="js/scroll-wrapper.js" src="https://flightaware.com/resources/airport/KSAN/IAP/all/pdf" width="600" height="700"></iframe>
                  </div>
              </div>
           </div>
      </div>
   </section>

class =“js / scroll-wrapper.js”导致:

 .scroll-wrapper {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  -webkit-overflow-scrolling: touch;
  overflow-y: scroll;
}

.scroll-wrapper iframe {
  height: 100%;
  width: 100%;
}

这就是脚本要运行的内容,但它仍然没有在iOS上滚动。

我也遇到了在Android上下载代码的问题。我现在如何设置下载?

由于

0 个答案:

没有答案