简体   繁体   中英

android webview zoom at specific area

Is it possible to display a area from a website in webview. without display the whole page.

i have this website http://roosters.gepro-osi.nl/roosters/rooster.php?leerling=116277&type=Leerlingrooster&afdeling=12-13_OVERIG&school=905 .

and i only want to display the table in webview. any help?

Zooming to the right area is a little dirty I think. When the page changes the layout, you'll need to update your app. Also, it might look nice on your screen but ugly on others.

My idea would be to use JavaScript in the context of the loaded page, to manipulate the DOM so only the table is shown (which is a simple <table> ). See this question: In Android Webview, am I able to modify a webpage's DOM?

If you can influence the HTML on the page, help yourself and give the desired table an id.

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