Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 加载iframe并滚动到id为的div_Html_Iframe - Fatal编程技术网

Html 加载iframe并滚动到id为的div

Html 加载iframe并滚动到id为的div,html,iframe,Html,Iframe,我创建了一个iframe来插入另一个网站,它需要显示一个div中带有id测试的块,类似于 <iframe scrolling="no" loading="lazy" src="https://example.com.br/#TESTE" style=" width: 260px; height: 630px; border-radius: 10px; overflow: hidden; " id="

我创建了一个iframe来插入另一个网站,它需要显示一个div中带有id测试的块,类似于

 <iframe scrolling="no" loading="lazy" src="https://example.com.br/#TESTE" style=" width: 260px; height: 630px; border-radius: 10px; overflow: hidden; " id="" width="100%" height="35" frameborder="0" allowtransparency="true"></iframe>

奇怪的是,有时它会到达正确的位置,有时它会落入随机部分或加载页面的其他位置