...Host Element 在介绍 HostListener 和 HostBinding 属性装饰器之前,我们先来了解一下 host element (宿主元素)。 宿主元素的概念同时适用于指令和组件。
基于8个网页-相关网页
inherit 可以用在任何CSS 属性中,而且它总是绑定到父元素的计算值(对伪元素来说,则会去取生成该伪元素的宿主元素)。
The inherit keyword can be used in any CSS property and it always corresponds to the computed value of the parent element (in pseudo-elements that is the element they are generated on).
但是有一点它没有定义,就是根元素,这留给了宿主语言去解决。
One thing it doesn't define, however, is a root element — that is left to a host language to address.
如何从同名的宿主词汇表元素中区分XHTML元素呢?
How do you distinguish the XHTML elements from the host vocabulary elements of the same name?
应用推荐