在我的 html5/css3 网站中,我需要加载 <form>
从外部主机/服务器并将其显示在我的页面上的某个位置。我读过框架已被弃用。什么是替代方案?我该怎么做?
谢谢
最佳答案
您可以为此使用 Iframe:
<iframe src="http://example.com/form.php" name="myform"> // or src="path/to/your/form.php"
// the content of your Iframe goes here...
</iframe>
http://www.quackit.com/html_5/tags/html_iframe_tag.cfm
http://webdesign.about.com/od/iframes/a/html5-iframe-attributes.htm
关于HTML5框架替代,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18350765/