简体   繁体   English

VS 2013模板在Chrome和IE11中呈现不同

[英]VS 2013 Template renders different in Chrome and IE11

I have an ASP.Net MVC 4.5 app running. 我有一个正在运行的ASP.Net MVC 4.5应用程序。

It's using the default templates in VS 2013 Express - however when viewed in Chrome, it looks fine - when viewed in IE11 it looks broken. 它使用VS 2013 Express中的默认模板-但是在Chrome中查看时看起来不错-在IE11中查看时看起来很破损。

Can anyone suggest a quick fix to get these two browsers to display the same with the default templates for VS? 谁能建议一个快速修复程序,使这两个浏览器与VS的默认模板一起显示?

Chrome vs IE11

Thanks for any help, 谢谢你的帮助,

Mark 标记

I would suggest that you look at using a reset style sheet to make sure that the defaults for all your elements are set to the same thing. 我建议您考虑使用重置样式表,以确保所有元素的默认设置都设置为同一对象。 Just type "reset css" into Google and then go with one you like the look of. 只需在Google中输入“ reset css”,然后选择您喜欢的外观即可。 You do this because each browser manufacturer generally implements slightly different defaults for their browsers, so unless you tell it otherwise it will apply these and this to your elements. 这样做是因为每个浏览器制造商通常为他们的浏览器实现略有不同的默认设置,因此,除非另行说明,否则它将对您的元素应用这些设置。

You also probably want to make sure that you have the box-model set for your browser sizing. 您可能还需要确保为浏览器的大小设置了盒模型。

{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
        box-sizing: border-box;
}

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

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