开发者

iPhone:UIWebview Gradient background starts-over when scrolling down the content

开发者 https://www.devze.com 2023-04-07 03:12 出处:网络
When I apply the gradient background to uiwebview custom html content it only applies to visible area , when scroll down the content the g开发者_如何学JAVAradient starts again from top color value aga

When I apply the gradient background to uiwebview custom html content it only applies to visible area , when scroll down the content the g开发者_如何学JAVAradient starts again from top color value again, any ideas?

[customHtml appendString:[NSString stringWithFormat:@"%@ ", @" <body style='background-color:#4b95bf; background-image:-webkit-gradient(linear, left top, left bottom, from(#55aaee), to(#003366));'>"]];


Use

 background-attachment:fixed;
0

精彩评论

暂无评论...
验证码 换一张
取 消