Posted By


fabric1 on 11/26/06

Tagged


Statistics


Viewed 439 times
Favorited by 0 user(s)

IFRAMEを使わずにHTMLファイルから他のHTMLファイルを読み込む方法


/ Published in: HTML
Save to your folder(s)

phpspot開発日誌より引用
--
このファイルでは、外部ファイルである、/exec/some.html というファイルを読み込んでいます。
IEの場合、タグにスタイルでサイズを指定しないと見えないので注意が必要です。
XHTMLではiframeタグは禁止されているのでValidにしたい場合はこっちを使ったほうがよいらしいです。
--


Copy this code and paste it in your HTML
  1. <title>test</title>
  2. </head>
  3.  
  4. <!--[if IE]>
  5. <object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" data="/exec/some.html" style="width:100;height:100px">
  6. <p>non object</p>
  7. </object>
  8. <![endif]-->
  9. <!--[if !Firefox]> <-->
  10. <object type="text/html" data="/exec/some.html">
  11. <p>non object</p>
  12. <!--> <![endif]-->
  13.  
  14. </body>
  15. </html>

URL: http://phpspot.org/blog/archives/2006/11/iframehtmlhtml.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.