// 去掉webView的滾動條
for (UIView *subView in [webView subviews])
{
if ([subView isKindOfClass:[UIScrollView class]])
{
// 不顯示豎直的滾動條
[(UIScrollView *)subView setShowsVerticalScrollIndicator:NO];
}
//取消webview上下黑灰色背景
webView.backgroundColor = [UIColor clearColor];
[webView setOpaque:NO];
}
webview 去掉滾動條和上下黑灰色背景
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.