简体   繁体   English

如何显示框架的一部分?

[英]How do i display a part of the frame?

Here is the image : 这是图片:

替代文字

So now how do i show only the "Red Boxed" part in my frame. 因此,现在我该如何在框架中仅显示“红色框”部分。

So is there any way i can position my frame or something to that dimensions ? 那么,有什么方法可以将我的框架或其他东西放置到该尺寸?

The short is that if you want to do it with google, you can't. 简短的是,如果您想与Google一起使用,那就不能了。 (show a specific part of it) (显示其中的特定部分)

To show all of it you can: 要显示所有内容,您可以:

<iframe src ="http://google.com" width="100%" height="300">
  <p>Your browser does not support iframes.</p>
</iframe>

See iframe 查看iframe

You can modify the width and height but you can't say where to start showing (because it's not you page). 您可以修改宽度和高度,但不能说出从哪里开始展示(因为这不是您的页面)。

The only thing you can do is put some div over it covering some parts 您唯一可以做的就是在其上覆盖一些部分的div

IMPORTANT, THIS IS JUST AN EXAMPLE 重要提示,这仅是示例

From Google's guidelines : Don't frame or mirror any Google page (including the page that appears in response to a click on the Google logo or Google search box). 根据Google的指南 :请勿框住或镜像任何Google页面(包括响应于单击Google徽标或Google搜索框而显示的页面)。

Thanks @Gordon ! 谢谢@戈登

Good luck! 祝好运!

with PHP you can retrieve the html and than quite easily edit it pragmatically. 使用PHP,您可以检索html,并且比实际更容易地对其进行编辑。

Or try and use HTML FRAME Attributes... http://www.w3schools.com/tags/tag_frame.asp The latter will only work if you try to get a part of your own page, and not google's.. 或者尝试使用HTML FRAME属性... http://www.w3schools.com/tags/tag_frame.asp仅当您尝试获取自己页面的一部分而不是Google的页面时,后者才起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM