我想加载HTML字符串自定义字体家人和文本颜色在WKWebView,我想在HTML中嵌入这个CSS,但它不工作:(。WKWebView与自定义字体类型和颜色
[NSString stringWithFormat:@"<html> \n"
"<head> \n"
"<style type=\"text/css\"> \n"
"body {font-family: \"%@\"; font-size: %d;}\n"
"</style> \n"
"</head> \n"
"<body>%@</body> \n"
"</html>", @"DINNextLTW23Regular", self.fontSize,@"Text"];
检查答案在这里:[http://stackoverflow.com/questions/449773/iphone-development-setting- uiwebview-font](http://stackoverflow.com/questions/449773/iphone-development-setting-uiwebview-font) –