iFrame крадет фокус в Firefox, но не Chrome - PullRequest
0 голосов
/ 28 января 2020

У меня есть iFrame на веб-сайте Wordpress, который вызывает URL с другого сайта. Iframe крадет фокус в Firefox, но не в Chrome. Есть ли кодовый бит, который я могу вставить в свой вызов, который не позволит iFrame * 1005 украсть фокус. Я посмотрел на ответы на похожие вопросы, но ни один из них не помог.

Here is the code.
<!DOCTYPE html>
<html>
<head>
<style>
.iframe-container {
    position: relative;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
     padding-top: 35%;
}
.iframe-container iframe {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
      .scroll-container {
       overflow: scroll;
       -webkit-overflow-scrolling: touch;
      }
     #iframe_survey {
      height: 100% !important;
     }

    .scroll-container {
     height: 100% !important;
     width: 100%;
     overflow: scroll;
     }

</style>

</head>
<body>

<div class="iframe-container", "scroll-wrapper">
  <iframe  src="https://calendar.moneymovers.com/290" width="1000" height="700"></iframe>
</div>

</body>

</html>

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...