NSString * constr=[NSString stringWithFormat:@"<p id='p_ImgView'><img width='300' src='file:%@' /></p>%@",[[NSBundle mainBundle] pathForResource:@"icon" ofType:@"png"],self.contentStr]; [self.webView loadHTMLString:constr baseURL:nil];
转载于:https://www.cnblogs.com/skyblue/archive/2013/02/06/2905281.html