开发者

how to make an iframe scroll to specific item

HI,

I have an iframe (in my domain) and i am looking for a plugin or any other way that i will be able to do that the iframe window will scroll somewhere in side him ( to a specific div), with a click on a but开发者_开发百科ton out side of the iframe.

any ideas? any one for help??


iframes can be scrolled like any other scrollable element. But you need to be aware that it's a nested document (so offsets are relative to the top/left corner of the iframe + if you want the position of a div in the iframe, you must use $("#iFrame").contents().find("#someDiv"))

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜