有没有人知道有什么好的资源来学习ASP.NET中的跨浏览器开发? 具体来说,导致页面在FF / Chrome / IE中看起来不同的是什么,开发过程中有哪些问题,如何在新项目中解决此问题等。
Does anyone know of any good resources for learning about cross-browser development in ASP.NET? Specifically, what causes a page to look different in FF/Chrome/IE, what are the gotchas when developing, how can this issue be addressed in a new project etc.
最满意答案
我没有发现这类信息的具体资源。 一般来说,我在遇到错误时找到了这些信息。 但第一步是至少学习不同浏览器使用的渲染引擎的高级概述。 他们都有自己特定的“怪癖”,因此存在像http://www.quirksmode.org/这样的网站。
与不同引擎有关的另一件事是理解开发框模型,以及CSS在每个浏览器(以及不同版本的浏览器)中的处理方式。 如果你需要非常担心浏览器之间的像素完美匹配,那么你将会有很多乐趣。
与此相关的另一件事是看看CSS Reset Sheets。 这使得不同浏览器之间的环境非常相似。 这使得开发变得更容易,但是从布局的角度来看,仍然不是万无一失的。
There's really not a specific resource I've found for that type of information. Generally I've found the information as I encounter the errors. But the first step is learning at least a high level overview of the rendering engines used by the different browsers. They all have their own particular "quirks", thus why a site like http://www.quirksmode.org/ exists.
Another thing related to the different engines is understanding the box model of development and how CSS is treated differently with it in each browser (and the different versions of the browsers). If you need to be extremely worried about pixel perfect matching between the browsers, you're going to have tons of fun.
Related to that, another thing is to look in CSS Reset Sheets. This gets the environment between the different browsers fairly similar. This makes development easier, but still not foolproof from messing up layout.
更多推荐
发布评论