iFrameの高さ取得
2010年10月22日(金) 9時34分
■iFrame内のコンテンツに応じて、iFrameの高さを取得してくれる。
★Auto iFrame Height
・説明ページ(英語)
http://www.lost-in-code.com/programming/jquery-auto-iframe-height/
【手順】
1.jQueryファイルを落としてきます。
http://jquery.com/
2.jQueryプラグインのautoHeightを落としてきます。
http://lib.mobius.tw/jquery/myplugin/iframe_autoHeight/api.htm
3.JSファイルをリンク
script type="text/javascript" src="jquery.js">
script type="text/javascript" src="jquery.autoheight.js">
4.iFrameにクラス名を記述
iframe class="autoHeight" scrolling="auto" frameborder="0" src="読み込み先URL">
※上記ソースの前カッコ(<)は取ってますのでお気をつけて。
★Auto iFrame Height
・説明ページ(英語)
http://www.lost-in-code.com/programming/jquery-auto-iframe-height/
【手順】
1.jQueryファイルを落としてきます。
http://jquery.com/
2.jQueryプラグインのautoHeightを落としてきます。
http://lib.mobius.tw/jquery/myplugin/iframe_autoHeight/api.htm
3.JSファイルをリンク
script type="text/javascript" src="jquery.js">
script type="text/javascript" src="jquery.autoheight.js">
4.iFrameにクラス名を記述
iframe class="autoHeight" scrolling="auto" frameborder="0" src="読み込み先URL">
※上記ソースの前カッコ(<)は取ってますのでお気をつけて。
< PR >マンション 飛鳥山
- AJAX・JavaScript |
- URL |

メニューバーを表示






はてなに追加
MyYahoo!に追加
del.icio.usに追加
livedoorClipに追加