Fah*_*kar 3 transparency background-color uiwebview ios ios5
我想要的是将webview的背景颜色设置为透明.
下面是我用于webview的代码.
NSString *embedHTML = [NSString stringWithFormat:@"<html><body style=\"background-color: transparent;font-family: verdana;\"><h3>About US</h3></BODY></HTML>"];
[webView loadHTMLString:embedHTML baseURL:nil];
Run Code Online (Sandbox Code Playgroud)
但是当我使用它时,我仍然将背景颜色视为白色.知道如何让颜色透明吗?
nyl*_*und 10
这是它应该采取的一切,
[webView setBackgroundColor:[UIColor clearColor]];
[webView setOpaque:NO];
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4001 次 |
最近记录: |