简体   繁体   English

CSS不适用于IE中已部署的应用程序

[英]CSS does not work with deployed application in IE

I have developed a small web App with MVC. 我使用MVC开发了一个小型Web应用程序。 I have some CSS that does work OK when in debug in visual studio ie on IIS Express 我在Visual Studio中的IIS Express上进行调试时,有一些CSS可以正常工作

It looks like as below (now I cannot insert images, thanks to stackoverflow) When I deployed this application to my local machine, some CSS does not work. 如下图所示(由于stackoverflow,现在我无法插入图像)将应用程序部署到本地计算机时,某些CSS无法正常工作。

This is how the deployed application appears. 这就是部署的应用程序的外观。 I explain, all the rounded corners are gone. 我解释一下,所有的圆角都消失了。 and the location of some DIVs is not where it is desired. 并且某些DIV的位置不在所需位置。 it happens in IE, Chrome is largely OK. 它发生在IE中,Chrome基本上可以。 when I check rendred css in developer tools for IE, all the "border-radius" elements appeared underlined. 当我在IE的开发人员工具中检查rendred css时,所有“边界半径”元素都带有下划线。 and position of the DIVs can be fixed by re-adjusting margins etc (which are good to go with Chrome). 可以通过重新调整边距等来固定DIV的位置(Chrome可以很好地配合使用)。 btw IE Version is 11.0.9600.16428 Windows 7 professional, IIS Version 7.5.76 btw IE版本是Windows 7 Professional 11.0.9600.16428,IIS版本7.5.76

Any clues? 有什么线索吗?

This can be several things. 这可能是几件事。 But I would check the following: 但我会检查以下内容:

  • Check that all css files have been deployed and contains the styling as the source. 检查是否已部署所有css文件并包含样式作为源。
  • Check that the mark up is the same. 检查标记是否相同。 Try opening the two sites in different tabs and check the source. 尝试在不同的选项卡中打开两个站点,然后检查源。
  • Check your developer tools for 404 on css/js files. 在CSS / JS文件上检查开发人员工具中的404。
  • Check for javascripts errors. 检查javascripts错误。
  • Check if the correct doctype is set. 检查是否设置了正确的文档类型。

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

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