我正在使用 webview 加载它加载数据的 html 字符串,但它不会改变文本颜色我也在改变颜色,但它没有生效。
   NSString *myDescriptionHTML = [NSString stringWithFormat:@"<html> \n"
                               "<head> \n"
                               "<style type=\"text/css\"> \n"
                               "body {font-family: \"%@\"; font-size: %@; text-colour:red}\n"
                               "</style> \n"
                               "</head> \n"
                               "<body>%@</body> \n"
                               "</html>", @"helvetica", [NSNumber numberWithInt:18],  texts];
它显示默认颜色而不是给定的新颜色