iPhone:UIWebview Gradient background starts-over when scrolling down the content
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;
精彩评论