NSString *htmlString = [NSString stringWithFormat:
@"<html>"
"<head>"
"<meta name='viewport'"
"content='width=device-width; initial-scale=1.0; maximum-scale=10.0;'"
">"
"<style type=\"text/css\">"
"body"
"{"
"margin: 0px;"
"padding: 5px;"
"}"
"#Content a:link {"
"color:#0E89E1;"
"text-decoration:underline;"
"}"
"#Content a:visiteid,"
"#Content a:hover,"
"#Content a:active,"
"</style>"
"</head>"
"<body>"
"<div>"
"<div id=\"Content\">%@</div>"
"</div>"
"</body>"
"</html>",
<a href = "www.baidu.com">链接</a>];
Content a:link里面就是链接的颜色;