1,在主頁面可以拿到iframe,也可以為iframe注冊onload等事件。document.getElementById('iframeId').onload
2,在主頁面操作其中的iframe的滾輪的時候,我的經驗:一定var iframeWindow=document.getElementById("iframeId").contentWindow
隱藏滾輪
::-webkit-scrollbar {
display: none;
}
偽對象
::-webkit-scrollbar { /* 1 */ }
::-webkit-scrollbar-button { /* 2 */ }
::-webkit-scrollbar-track { /* 3 */ }
::-webkit-scrollbar-track-piece { /* 4 */ }
::-webkit-scrollbar-thumb { /* 5 */ }
::-webkit-scrollbar-corner { /* 6 */ }
::-webkit-resizer { /* 7 */ }
:horizontal
:vertical
:decrement
:increment
:start
:end
:double-button
:single-button
:no-button
:corner-present
:window-inactive