Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
359 views
in Technique[技术] by (71.8m points)

html - iFrame links are not working when embedded. How can I sort this?

Am hoping you can help me. I am embedding an iframe in my website using this code:

`<div class="iframe-container">
  <iframe width="560" height="315" src="https://www.rightmove.co.uk/property-for-   sale/find/Kennedys/Bridport.html?locationIdentifier=BRANCH%5E32820&includeSSTC=true&_includeSSTC=on" allowfullscreen allow-popups></iframe>
 </div>`

The CSS for the Iframe Container is:

`.iframe-container {
   overflow: hidden;
  padding-top: 56.25%;
  position: relative;
}
 .iframe-container iframe {
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  }`

The issue is that when the frame loads it does not allow the links to be opened (they can be clicked but they do not open) I have tried allow-popups in the iframe code but that doesn't work.

Any ideas on how to fix, please.

It can be seen here https://kennedys.icts.website/buy

Thank you in advance.

Tom


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...