[英]CSS styles rendering differently in .Net
This is more of a curiosity question than anything else but if anyone has a suggestion as to what I'm doing incorrectly, if anything, it would be great. 这比任何其他问题更是一个好奇心问题,但是如果有人对我在做什么不正确的建议,那么如果有的话,那会很棒。
I am using drag and drop ui with objects that are very CSS intensive. 我将拖放ui与CSS密集型对象一起使用。 I usually create the objects in an html page, apply the html structure, styles, images, etc... until I have the complete object.
我通常在html页面中创建对象,应用html结构,样式,图像等,直到获得完整的对象。 Then I copy the styles to the .css file and the html images etc.. to their respective directories.
然后,我将样式复制到.css文件,并将html图像等复制到它们各自的目录。
When I run the .Net solution the objects render completely out of whack from what looked real nice in the html page. 当我运行.Net解决方案时,对象完全脱离了html页面中看起来不错的东西。 Then I need to clean it up and change the styling so the objects look correct in the .aspx/.ascx pages.
然后,我需要清理它并更改样式,以使对象在.aspx / .ascx页中看起来正确。
I've noticed this behavior in IE8 and IE9. 我注意到IE8和IE9中的这种行为。 Why does the .css render differently?
为什么.css呈现不同?
Thanks. 谢谢。
IE has many, many well-known CSS quirks, and the ASP.NET development environment uses IE8's rendering engine. IE浏览器有许多, 许多知名CSS怪癖和ASP.NET开发环境使用IE8的渲染引擎。 So, the solution is to code cross-browser-compatibly.
因此,解决方案是跨浏览器兼容地进行编码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.