开发者

iFrame a specific part of a page?

I would like to target a specific part of a page to show in an iFrame. I know that this is possible as I found a solution for some while ago, but I lost the link and can't seem to find it on google anymor开发者_StackOverflow中文版e.


If the part of the page contains a link with a name you can do

<iframe src="page.html#link_name"></iframe>

If the page doesn't have links like these you can scroll the iframe

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜