开发者

Can pages loaded into an iframe from another domain be scrolled via JavaScript?

If 开发者_如何学JAVAyes, could you please show me an example of how to do it?


No. But you can put a large iframe in a small parent div that has CSS overflow, and then write to the div's scrollTop/scrollLeft.


No it's not possible. You have no control over an iframe from another domain for security reasons.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜