开发者

fixed background UIWebView [duplicate]

开发者 https://www.devze.com 2023-03-08 13:57 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: Workaround for '开发者_Python百科;background-attachment: fixed' which is not working in iOS4
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

Workaround for '开发者_Python百科;background-attachment: fixed' which is not working in iOS4

I have a problem, there is a way for fix the background on UIWebView with css? thank you

kikko088


Not quite sure if this is the answer you're looking for, but you can inject javascript into a UIWebView page.

http://iphoneincubator.com/blog/windows-views/how-to-inject-javascript-functions-into-a-uiwebview

In theory you could just call document.write to write any html you need. If you have control over the html/css file, you could just add

<style type="text/css">
body  
{
background-image:url('smiley.gif');
background-repeat:no-repeat;
background-attachment:fixed;
}
</style>
0

精彩评论

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