开发者

How do i display a part of the frame?

Here is the image :

How do i display a part of the frame?

So now how do i show only the "Red Boxed" par开发者_如何学JAVAt 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. (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

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

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).

Thanks @Gordon!

Good luck!


with PHP you can retrieve the html and than quite easily edit it pragmatically.

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..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜