“chrome” 是什么意思?意思是?
这句话可以在 Mozilla 的 XUL 文档中看到。 chrome 这个词在这种情况下意味着什么?
This sentence is seen on the Mozilla documentation for XUL. What does the word chrome mean in this context?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
它是围绕内容的图形框架和元素的委婉说法,因此根据上下文意味着不同的东西。
在网络浏览器的上下文中,它是导航、工具栏等。
在网站的上下文中,它是导航、广告空间和设计的其他固定方面。
术语“用户界面镶边”与“图形用户界面”或简称 GUI 是同义的,您可能更熟悉这个术语。
在您在
browser.type
文档中提到的上下文中,它实际上只是 XUL 框架通过 URI 加载特权内容的一种方式。这里的名称可能看起来有点误用,但在大多数情况下,这是 XUL 框架加载用于构建浏览器镶边的所有图形的方式,因此它与我描述的第一个上下文很好地配合。It is a euphemism for the graphical framework and elements surrounding the content, and thus means different things depending on the context.
In the context of a web browser it is the navigation, toolbar etc.
In the context of a website it is navigation, ad-space and other fixed aspects of the design.
The term "user interface chrome" is synonymous with "graphical user interface" or GUI for short, a term you are probably more familiar with.
In the context your are referring to in the
browser.type
documentation, it is actually just a way for the XUL framework to load privileged content via a URI. The name here may seem a little misused, but for the most part, this is the way the XUL framework loads all graphcis used to build the browser chrome, and as such it goes well with the first context i described.chrome 是应用程序周围的窗口。它是浏览器窗口本身(边框、导航、地址栏等)。
The chrome is the window around your application. It is the browser window itself (borders, navigation, address bar, etc).
chrome 是浏览器框架,包括浏览器本身的所有代码和 UI。
The chrome is the browser frame, including all of the code and UI in the browser itself.
镶边是布局的可复制部分,或者是围绕内容的设计。
例如,Facebook 应用程序显示在 facebook chrome 中(所有蓝色的东西)。
A chrome is a replicatable part of a layout, or a design that surrounds a piece of content.
For example, facebook apps are displayed in the facebook chrome (all the blue stuff).