2013-03-28 45 views
0

我念叨jQuery的調整http://jqueryui.com/resizable/ 我的HTML頁面3個div標籤和1個IFRAME - 像jQuery的調整藉助iframe和div標籤

<link rel="stylesheet" type="text/css" href="/static/reset.css" /> 

<body class="site"> 
    <div id="mytag1"> 
    <iframe src="/some/path/" scrolling="no" frameborder="0"></iframe> 
    </div> 

    <div id="mytag2"> 

    <div id="mytag3"> 
    </div> 
    </div> 
</body> 
</html> 

我想允許用戶調整包含在div-id內的iframe的大小#mytag1 如何做到這一點?感謝您的任何幫助

回答

1

使iframe適合div其中包含它。因此,將其CSS樣式屬性widthheight設置爲100%

然後設置div的大小並使其爲resizable()

這是你正在尋找的:http://jsfiddle.net/PHbHN/

+0

謝謝,我認爲這會奏效。我會試試看。 – 2013-03-28 08:06:25

+0

好的,祝你好運! – Knelis 2013-03-28 08:07:41