【发布时间】:2013-08-07 04:39:20
【问题描述】:
为什么以下 javascript 命令不能设置 UIWebView html 富文本编辑器中使用的 RGB 十六进制字体颜色?
RGB hex 中的颜色更改为标准的蓝色、黄色、红色等,例如:
[webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.execCommand('forecolor', false, '#407ec9')"]];
在 html 中生成
<font color="#0000ff"> HELLO WORLD </font>
【问题讨论】:
标签: javascript colors uiwebview font-face