将网页插入表格中的单元格 [英] Insert a webpage into a cell in a table
问题描述
我的网页上有一个包含4个单元格(2x2)的表格。在其中一个
单元格中,我希望加载存储在不同服务器上的网页
(比如...... www.webpage.com/abc.htm) 。 HTML是否允许这样做?
我知道如果我使用框架可以以这种方式加载页面但是我确实
不想为我的页面使用框架。
我看到有很多其他帖子都在问这个问题,但是
似乎不是一个确定的答案。
提前感谢您的帮助!!!!
Hi,
I have a webpage with a table that has 4 cells (2x2). In one of those
cells, I wish to load a webpage stored on a different server
(say...www.webpage.com/abc.htm). Does HTML allow for this to be done?
I know a page can be loaded in this manner if I use frames but I do
not want to use frames for my page.
I see there are quite a few other posts asking this question but there
does not seem to be a conclusive answer.
Thank you in advance for your help!!!!
推荐答案
ru ****** @ yahoo.com (Ruslan Kogan)写在
新闻:d5 ********** ****************@posting.google.c om:
ru******@yahoo.com (Ruslan Kogan) wrote in
news:d5**************************@posting.google.c om:
我有一个网页有一个有4个单元格(2x2)的表格。在其中一个
单元格中,我希望加载存储在不同服务器上的网页
(比如...... www.webpage.com/abc.htm) 。
问题1:他们是否允许您使用?
HTML是否允许这样做?
你将无法干净利落地完成任务;你必须使用iframe。
我知道如果我使用框架可以以这种方式加载页面但我不想在我的页面使用框架。
所以解决方案已经解决了。
我看到有很多其他帖子都在问这个问题但是
似乎没有是一个确定的答案。
Hi,
I have a webpage with a table that has 4 cells (2x2). In one of those
cells, I wish to load a webpage stored on a different server
(say...www.webpage.com/abc.htm).
Question 1: Did they give you permission?
Does HTML allow for this to be done?
You will not be able to do it cleanly; you''d have to use an iframe.
I know a page can be loaded in this manner if I use frames but I do
not want to use frames for my page.
So that solution''s out.
I see there are quite a few other posts asking this question but there
does not seem to be a conclusive answer.
您需要包含文件服务器端。
但首先您需要获得许可,或者否则你违法了(很多
的地方)。
You need to include the file server-side.
But first you need permission, or else you are breaking the law (in many
places).
Ruslan Kogan写道:
Ruslan Kogan wrote:
我有一个包含4个单元格(2x2)的表格的网页。在其中一个
单元格中,我希望加载存储在不同服务器上的网页
(比如...... www.webpage.com/abc.htm) 。 HTML是否允许这样做?
I have a webpage with a table that has 4 cells (2x2). In one of those
cells, I wish to load a webpage stored on a different server
(say...www.webpage.com/abc.htm). Does HTML allow for this to be done?
如果你的服务器上安装了PHP:
< td> < ;?包括(QUOT; HTTP://www.webpage.com/abc.htm"); ?>< / td>
或者如果你更像是一个Perl类型的人:
print"< ; td>" ;;
system(" / usr / bin / HEAD''http://www.webpage.com/abc.htm''");
打印"< / td>";
-
Toby A Inkster BSc(荣誉)ARCS
与我联系〜 http://tobyinkster.co.uk/contact
If you have PHP installed on your server:
<td><? include("http://www.webpage.com/abc.htm"); ?></td>
Or if you''re more of a Perl kind of guy:
print "<td>";
system("/usr/bin/HEAD ''http://www.webpage.com/abc.htm''");
print "</td>";
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Toby Inkster写道:
Toby Inkster wrote:
print"< td>" ;;
system(" / usr / bin / HEAD''http://www.webpage.com/abc.htm''");
print"< / td>" ;;
print "<td>";
system("/usr/bin/HEAD ''http://www.webpage.com/abc.htm''");
print "</td>";
>
这将显示页面的标题,而不是内容。你要
改变" / usr / bin / HEAD"到/ usr / bin / GET。但是你想要做一些
剥离,这样你才能获得body元素的内容。
That''ll show the headers of the page, not the content. You''ll want to
change "/usr/bin/HEAD" to "/usr/bin/GET". But you''ll want to do some
stripping so that you only get the contents of the body element.
这篇关于将网页插入表格中的单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!