HTML5框架替代

标签 html css iframe frames

在我的 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/

相关文章:

javascript - 下拉选择包含 div 单击纯 javascript

javascript - 单击 anchor 标记内的字形图标时无法访问 anchor 标记数据

javascript - 根据宽度移动元素位置

jquery - AJAX 和 YouTube : 'X-Frame-Options' to 'SAMEORIGIN' .

javascript - 防止在 jQuery 验证引擎之后提交

javascript - 如何使用 React 替换 iframe 的 URL?

css - 在 Bootstrap 中对齐图标

jquery - 滚动问题

html - iframe 不随其父窗口一起调整大小

jquery - 从下拉列表中获取文本并使用 JQuery 将其插入到输入文本中?