2
我有這個html頁面: 代碼:UIWEbView透明背景:有可能嗎?
<html>
<!-- ... -->or explicity set the background-color CSS property to transparent:
<head>
<style type="text/css">
html,
body {
background-color: transparent;
}
</style>
<!-- ... -->
</head>
,並用uivewbview: 代碼:
[webv setBackgroundColor:[UIColor colorWithWhite:1 alpha:0.8]];
[webv loadRequest....];
頁面顯示,但背景是白色的。 如果我在頁面結束之後開始結束之前滾動頁面,我可以看到透明度(頁面顯示在哪裏) 我可以有一個完全透明的html頁面,所以我可以看到uiwebview的背景嗎? 感謝
也:[webv setBackgroundColor:的UIColor clearColor]]; – sefiroths 2012-09-24 12:23:38