啊啊哈哈哈哈
NSString *htmls = [NSString stringWithFormat:@"<html> \n"
"<head> \n"
"<style type=\"text/css\"> \n"
"body{margin:12px 12px 12px 12px;font-size:70px;simsun, arial, helvetica, clean, sans-serif;padding:0px;text-align:justify;color:#2B2B2B;text-transform:none;letter-spacing:normal;word-spacing:0px;white-space:normal;-ms-word-break:normal;-ms-word-wrap:break-word;widows:1;background-color:#FFFFFF;-webkit-text-stroke-width:0px;}\n"
"</style>\n"
"</head> \n"
"<body>"
"<script type='text/javascript'>"
"window.onload = function(){\n"
"var $img = document.getElementsByTagName('img');\n"
"for(var p in $img){\n"
" $img[p].style.width = '100%%';\n"
"$img[p].style.height ='auto'\n"
"}\n"
"}"
"</script>%@"
"</body>"
"</html>",model.content];
[self.webView loadHTMLString:htmls baseURL:nil];