English 中文(简体)
如何删除在 iPhone 中使用 UIWebview 装入的 HTML 文件的背景颜色
原标题:How to remove the background color of HTML file loaded using UIWebview in iPhone

我有一个 HTML 文件在我的包中。 我正使用 WebView 装入它... 然后我会得到一个白色的背景颜色( 我想可能是 HTML 文件的背景颜色) 。 当该背景出现在 iPhone 上时, 我怎么能删除它...

问题2: 我要为 iPhone 和 iPad 使用 HTML 文件, 字体大小不同。 我有 20 HTML 文件。 例如, HTML 文本的字体大小为 15... 这个大小对 iPhone 足够, 但对于 iPad 来说, 它看起来很小... 我如何使用 iPhone 代码动态修改 HTML 文件的字体大小...

最佳回答

尝试设置您的 viview 背景颜色以这样清除 :

uiwebview.backgroundColor = [UIColor clearColor];

将身体标记更改为此( 或添加到您的 CSS ) :

<body style="filter: alpha (opacity=0)">
问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签