Why doesn't iframe introduce another web page?

<iframe scrolling="no" frameborder="1"  height="1000px" width="800px"  frameborder="1/0" src="https://www.baidu.com" ></iframe>

add the above code to HTML so that you want to display another web page, but most of the time you don"t show the introduced web page, and occasionally. I don"t know why, ask the great god for an answer.

Dec.29,2021

pick it up in your browser F12 to see if the iframe is hidden.


use f12 to check your iframe style
< style type= "text/css" >

iframe{display: none;}

< / style >


some pages block iframe calls for security reasons, so some pages can be opened, others can't open


owner, check whether your website is http protocol, if so, it certainly won't work, because your embedded iframe URL is https protocol. For specific reasons, you can take a look at the related articles, keywords http and https.


can be displayed

<iframe height="1000px" width="800px" src="https://www.baidu.com" ></iframe>

is there something wrong with your attributes

Menu