objective c - iphone : How to set Font size in webView? -


i creating html using following code :

nsstring *string = [nsstring stringwithformat:                         @"<html> \n" "<head> \n"                         "<style type=\"/css\"> \n"                         "body {font-family: \"%@\"; font-size: %@;}\n"                         "</style> \n"                         "</head> \n"                         "<body>%@</body> \n"                         "</html>",@"helvetica",[nsnumber numberwithint:17],                         @"<p><i>my data</p>"]; 

here giving [nsnumber numberwithint:17] font size change in 17 dosen't making changes in font size of html.

what should ?

i think problem had wrong style type – /css , not text/css.

"<style type=\"text/css\"> \n" 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -