【问题标题】:Seamless UIWebview background无缝 UIWebview 背景
【发布时间】:2012-11-06 23:48:34
【问题描述】:

有没有办法摆脱 UIWebView 的边框?现在,即使我将背景设置为白色,在页面外滚动时也会看到边框。

【问题讨论】:

标签: objective-c ios uiwebview


【解决方案1】:

您无法删除灰色区域,您可以禁用滚动,这似乎是最好的方法。

我们目前在 UIWebView 上设置了透明背景

webview.opaque = NO;
webview.backgroundColor = [UIColor clearColor];

在 HTML 中

<body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0style="background-color:transparent">

【讨论】:

    猜你喜欢
    • 2013-08-11
    • 1970-01-01
    • 1970-01-01
    • 2010-12-05
    • 2019-09-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多