![](/img/trans.png)
[英]How to take content from an element in a webpage and show it in my html page?
[英]How to show a linked page as the content of a table <td> element in my case?
我已经做了一个HTML表。
假设我有一个链接,例如,指向www.nokia.com的链接, 单击“单击我”后是否可以将链接的页面显示为表格元素的内容? 以及如何做到这一点?
<a href="#">click me</a>
<table>
<tr>
<td>
// how to show the content of "www.nokia.com" page here
</td>
</tr>
<table>
也许您可以使用<iframe>
和一些jQuery来完成这项工作。
例:
jQuery的:
$(document).ready(function(){
$("a").click(function(){
$("iframe").show();
});
});
HTML:
<a href="#">click me</a>
<table>
<tr>
<td>
<iframe src="http://www.nokia.com" width="100%" height="300" style="display: none;">
<p>Your browser does not support iframes.</p>
</iframe>
</td>
</tr>
<table>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.