开发者

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;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜