iPhone UIWebView问题 [英] iPhone UIWebView problem
问题描述
我正在尝试编写一个应用程序以在Web视图中显示此链接的网页: http://just4u.safeway.com 但是该页面无法在UiWebView中显示,我收到一条消息:
I am trying to write an application to show a web page in a web view for this link: http://just4u.safeway.com But the page can not be shown in the UiWebView, I got a message:
此页面包含以下内容 错误:第90行第11列的错误: AttValue:或'预期.
This page contains the following errors: error on line 90 at column 11: AttValue: " or ' expected.
有人可以让我知道可能是什么问题吗?我已经添加了处理重定向的代码,但仍然遇到相同的问题.
Can someone let me know what could be the problem? I already added code to handle redirect, but still get the same problem.
谢谢
推荐答案
尝试将页面的MIME类型显式设置为"text/html".否则,它可以在UIWebview中解析为xhtml.还要检查您的<!DOCTYPE>
是否没有声称自己是xhtml.
Try explicitly setting the MIME type of the page to be "text/html". Otherwise it may be parsed in the UIWebview as xhtml. Also check that your <!DOCTYPE>
is not claiming to be xhtml.
这篇关于iPhone UIWebView问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!