我想加載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) –