简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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