iphone
  • html
  • css
  • ios
  • 2011-09-23 79 views 0 likes 
    0

    当我将渐变背景应用于uiwebview自定义html内容时,它仅适用于可见区域,当向下滚动内容时,渐变再次从顶部颜色值开始,任何想法?iPhone:UIWebview当向下滚动内容时渐变背景开始

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

    回答

    2

    使用

    background-attachment:fixed; 
    
    +0

    潮湿JA WEL!你救了我的一天 – Spring

    相关问题