互联网浏览器使用什么来渲染?
非常快,我一直想知道,互联网浏览器是否使用渲染操作系统 API 函数来创建按钮、渲染法师等,或者它们自己渲染这一切?
我首先想到它使用系统API,但是有一些效果,例如当屏幕淡入灰色时,你只能看到中间的小窗口,你知道,这种效果在许多在线相册中使用,我真的不知道如何使用它来实现例如仅 Win32 调用。
编辑:更准确地说,我知道屏幕上的最终绘图将始终使用系统 API,但您可以根据需要发送预渲染图像。谢谢。
very quick one, I was always wondering, do internet browsers use for rendering OS API functions to create buttons, render mages and so, or do they render it all on their own?
I first thoght that it uses system api, but there are some effects like when screen fades into grey and you see only small window in the middle, you know, thet effect used on many picture albums online, which I dont really how to achive using for example only Win32 calls.
EDIT: To be more exact, I know that final drawing on screen will always use system API, but you can send prerendered image as you want to it. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Web 浏览器使用自己的渲染引擎而不是操作系统 API。使用OS API来渲染按钮完全取决于特定渲染引擎的设计决策。然而,为了在各种操作系统上运行,这些引擎更喜欢自己的渲染,以跨平台提供相同的外观。
参考:http://en.wikipedia.org/wiki/Web_browser_engine
Web browsers use their own rendering engines rather than OS API. Using OS API to render buttons totally depends on the design decision of a particular rendering engine. However, to run on various operating systems these engines prefer their own rendering to offer same look-n-feel across platforms.
Ref: http://en.wikipedia.org/wiki/Web_browser_engine
我实现了一些浏览器渲染引擎(参见例如 支持的元素表< /a> 和 支持的属性 获取 HTML 列表它支持的元素和 CSS 属性)。
我使用系统 API(.NET Framework API,它们是底层 O/S GDI API 的薄包装)来:
这些是 API 功能类型由 Windows GDI 实现。
我还使用一些系统(O/S 或 .NET)API 来绘制按钮和组合框(请参阅重写标准控件,例如编辑、组合等?)。
,是的,实现 CSS 和所有内容确实需要一段时间。您已经看到浏览器开发团队花了多长时间来实施:几个日历年,许多人年。
I implemented something of a browser rendering engine (see e.g. Table of Supported Elements and Supported Properties for a list of the HTML elements and CSS properties that it supports).
I use system APIs (.NET Framework APIs, which are thin wrappers around underlying O/S GDI APIs) to:
These are the kind of API functionality that's implemented by the Windows GDI.
There are also some system (O/S or .NET) APIs that I use, to draw buttons and combo boxes (see Rewrite standard controls like edit, combo, etc?).
Yes, implementing CSS and everything does take a while. You've seen how long it took the browser developer teams to implement: several calendar years, many person-years.