简体   繁体   中英

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.

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.

The iframe can't be used like that. Please check: What is iframe used for?

You can't add content to an iframe tag like that.

You can check this javascript solution: Insert content into iFrame

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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