0
如何在加載後使下面的框架能夠讓用戶拖動和縮放尺寸?這可能與HTML/CSS/JS?用戶操作框架 - HTML/CSS/JS
<script>
var frame;
function addFrame() {
frame = document.createElement('iframe');
frame.height = "200px";
frame.width = "200px";
frame.setAttribute('id', 'superFrame');
document.body.appendChild(frame);
}
function loadGoogle() {
frame.setAttribute('src','http://www.google.com')
}
</script>
左是我有,右是我想要的,但用戶通過拖動框架設置大小。
http://stackoverflow.com/questions/6194302/how-can-i-cleanly-resize-an-iframe-with-dragging-functionality – j08691
http://stackoverflow.com/questions/ 8117761 /我怎麼做我可以做一個iframe可調整大小 – j08691
http://stackoverflow.com/questions/7816372/make-iframes-resizable-dynamically – j08691