簡體   English   中英

iframe在Chrome上使用jquery滾動?

[英]iframe scrolling with jquery on chrome?

我已經閱讀了很多有關如何使用Java腳本等等和Jquery進行滾動的內容,但是沒有任何幫助。 還有其他方法可以執行此操作嗎?

<iframe id="something" src="something" >

和這個

$("something").scrollto(0,20);

還有更多

現在,jQuery將.attr設置為scrolling =“ yes”並重新加載iframe!

 $(document).ready(function () {
        $("#button3").click(function () {
            $("#iframe_id").attr("scrolling", "yes");
            $('#iframe_id').attr("src", $('#iframe_id').attr("src"));
        });
    });

http://jsfiddle.net/77van/k8GhZ/10/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM