UIWebView background color

前端 未结 5 463
不知归路
不知归路 2021-01-31 01:19

I am loading an HTML string into a UIWebView in order to be able to view rich text. So far, so good. But I have one small problem: in my Nib file, I set the background attribute

5条回答
  •  遇见更好的自我
    2021-01-31 02:13

    Set the background color in your html itself using css markup.

    Or, set the webview's opaque property to NO .. and set the background of the view underneath to green.

    UIWebView themselves don't seem to understand background color-- since they are rendering documents.

提交回复
热议问题