search

Home  >  Q&A  >  body text

ios - 关于UIWebView加载HTML页面的问题

关于UIWebView加载HTML页面的问题,

如图所示,有没有办法不加载上边红框里的内容,只显示content的内容,因为上边的内容是不需要的?是要对网页进行解析吗?还是怎么做,我直接用webView加载网页地址,就变成如图所示的样子了,可是一些不需要的东西不想让他出现?求救如何才能不显示??!谢谢!!

PHPzPHPz2890 days ago367

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 18:02:01

    HTML Make an HTML again

    reply
    0
  • ringa_lee

    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

    reply
    0
  • 黄舟

    黄舟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

    reply
    0
  • Cancelreply