我已經實現了提要解析&以字符串形式獲取內容。現在,我正在通過它編寫html文件。在Web視圖中加載該HTML。我的網絡視圖是表格視圖單元格中的子視圖。更改Iphone SDK中Web視圖的字體大小
,但現在我想改變的Web視圖內容的字體大小,這樣用戶就可以看到一些細節。
我對HTML生成代碼:
NSString * postHTML=[[_parseResults objectAtIndex:indexPath.row]valueForKey:@"summary"]; NSString *close =[NSString stringWithFormat:@"</body></html>"]; NSString *HTMLString = [NSString stringWithFormat:@"%@%@", postHTML,close]; [Web_view loadHTMLString:HTMLString baseURL:nil]; [cell.contentView addSubview:Web_view]; return cell;
如何更改的Web視圖內容的字體大小?
http://stackoverflow.com/questions/6324548/how-to-change-font-size-in-html-string –