自定义webview背景色  重点是把webview弄成透明的 然后把self.view的背景调色即可

UIWebview 背景透明处理

 

  UIWebView 背景透明需要以下设置

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

    关键是在HTML里:

<body style="background-color: transparent">

相关文章:

  • 2021-11-21
  • 2021-09-02
  • 2022-12-23
  • 2022-01-21
  • 2021-10-22
  • 2021-10-11
  • 2022-01-03
  • 2022-12-23
猜你喜欢
  • 2021-10-08
  • 2022-12-23
  • 2021-12-25
  • 2021-08-18
  • 2021-11-14
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案