关于UIWebView加载HTML页面的问题,
如图所示,有没有办法不加载上边红框里的内容,只显示content的内容,因为上边的内容是不需要的?是要对网页进行解析吗?还是怎么做,我直接用webView加载网页地址,就变成如图所示的样子了,可是一些不需要的东西不想让他出现?求救如何才能不显示??!谢谢!!
ringa_lee2017-04-17 18:02:01
This depends on the responsive layout of the webpage. If you want to use webview to do it, it is unrealistic. You can directly modify the webpage and add a responsive layout to it. You can use bootstrap
黄舟2017-04-17 18:02:01
First, execute a piece of js after the page is loaded
Second, find someone who knows js to help you write a DOM and filter out the tags on it
Third, done