简体   繁体   中英

remove header (and possibly footer) from iframe

I am trying to pull in this inventory list from this equipment trader online webpage onto a separate site. I want to get rid of the header, and if possible, the footer, to try and keep users from wandering to another person's inventory. There are hardly any anchors on their divs, and using a non-scrollable iframe going to a specific anchor does work, but when the user clicks any of the units, it stops working.

You can't read or modify the contents of an iframe from an outer frame. Your browser does this to protect you from someone setting up a site and putting your bank in an iframe then reading your account number, your address and your balance then taking all your money.

You could use margin-top: -1px; inside css to hide the top part of the page.

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