解决方案 »

  1.   

    http://www.2cto.com/kf/201110/108330.html
      

  2.   

    http://blog.csdn.net/rain_butterfly/article/details/22423473这个是我写的
      

  3.   

    我想问一下,jsoup怎样把html中的图片解析并显示出来,我试了网上很多办法,好像都不能成功显示,都只能单独显示链接,下面是我的代码:public void newsItemWebView(String itemUrl){
    try {
    doc=Jsoup.connect(itemUrl).timeout(4000).get();
    divAllItemElement00 = doc.getElementsByClass("newsdetaildesc");
    divAllItemElement01=doc.getElementsByClass("newsImage").select("img").attr("src");
    divAllItemElement02=doc.getElementById("contentzoom");
    mContent = divAllItemElement00.toString()+divAllItemElement01+divAllItemElement02.toString();
    System.out.println("neirong:"+mContent);
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }只能显示图片在网页中的名字