简体   繁体   English

Cloud Foundry与IE不兼容?

[英]Cloud foundry not compatible with IE?

When I run my application locally, the UI looks perfectly fine on any browser . 当我在本地运行应用程序时,该UI在任何浏览器都可以正常显示。 When I deploy my application onto cloud foundry, it gives me a link to view the application. 当我将应用程序部署到Cloud Foundry上时,它为我提供了查看应用程序的链接。 The UI looks fine on Mozilla firefox and google chrome. 用户界面在Mozilla firefox和google chrome上看起来不错。 But on IE it looks distorted and messed up. 但是在IE上,它看起来像是扭曲和混乱。 As I said previously when I ran my application locally my UI looks fine on IE, Only when I deployed it on CF and view it. 就像我之前在本地运行我的应用程序时所说的,我的UI在IE上看起来不错,只有当我将其部署在CF上并查看它时。 It looks messed up. 看起来糟透了。

Running Locally (Chrome, Mozilla, and IE. Looks like this) 在本地运行 (Chrome,Mozilla和IE。看起来像这样)

(Chome and Mozilla also looks like his after deployed on CF) (Chome和Mozilla在部署到CF后也看起来像他)

本地

Deployed on CF (Only IE looks like this) 部署在CF上 (只有IE看起来像这样)

IE浏览器

It looks like my css, javascript, ajs, all not working. 看来我的CSS,JavaScript,AJS都无法正常工作。 I do have "!DOCTYPE html" specified on top of my html files. 我的html文件顶部确实指定了“!DOCTYPE html”。

Extra Info on Project 有关项目的更多信息

The project is written with Java, springboot and thymeleaf. 该项目是用Java,springboot和thymeleaf编写的。 I am deploying my application as a jar. 我将应用程序部署为jar。 "-cf push". “ -cf push”。 I am currently using java_buildpack_offline 我目前正在使用java_buildpack_offline

My application was running on default emulation of IE7. 我的应用程序在IE7的默认仿真上运行。 I added the following code into my html script and I was able to retain my javascripts, css, etc... 我将以下代码添加到html脚本中,并且能够保留我的javascript,css等...

<meta http-equiv="X-UA-Compatible" content="IE=10"/>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM