【发布时间】:2011-11-11 14:54:55
【问题描述】:
我有一个使用 Primefaces 2.2.1 和 JSF 2.0 开发的应用程序,部署在 Glassfish 3.1 本地机器上。
问题是当我使用http://localhost:8080/MyApp 访问应用程序时,UI 格式很好。但是,如果我在 url 中使用 http://ip-address:8080/MyApp 而不是 localhost 来访问应用程序,那么 UI 格式就会有点混乱。
这个问题只出现在 IE(我有 8.0 版)上,不会出现在 FF 上。在网址中使用localhost:8080 和ip-address:8080 有什么区别?以下是说明我的问题的图片。
使用http://ip-address:8080/MyApp:
使用http://localhost:8080/MyApp:
谢谢。
【问题讨论】:
标签: css internet-explorer jsf-2 primefaces localhost