简体   繁体   English

如何使框架与锚点兼容

[英]How do I make a frame compatible with anchor

I have tried to test other questions using StackOverflow, but I couldn't get it to work. 我试图使用StackOverflow测试其他问题,但无法正常工作。

The frame will not scroll to the anchor. 框架将不会滚动到锚点。

 <iframe src="http://coder0.weebly.com/browsers-images.html#B0" width="95%" height="50" target="_parant" id="comfra" frameborder="0" scrolling="no"> <p><a href="browser-not-supported">Please click here</a></p> </iframe> 

The id is B0. ID为B0。

The iframe can't be used like that. 无法使用iframe。 Please check: What is iframe used for? 请检查: iframe的用途是什么?

You can't add content to an iframe tag like that. 您不能将内容添加到iframe代码中。

You can check this javascript solution: Insert content into iFrame 您可以检查以下javascript解决方案:将内容插入iFrame

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM