查看trinidad skinning selectors的文档,我注意到有些选择器以:alias
结尾,而其他选择器则没有。例如:
.AFLabelDisabled:alias Aliased style class that is included in the label selector for all the form components when they are disabled. It is a quick way to style disabled form components' labels the same, instead of for each component: .AFLabelDisabled:alias instead of e.g., "af|inputText:disabled af|inputText::label".
.AFErrorIconStyle Style class that styles the .AFErrorIcon:alias icons.
甚至还有这个选择器,包含和不包含:alias
:
.AFRequiredIconStyle Style class that styles the .AFRequiredIcon icon.
.AFRequiredIconStyle:alias Alias style class that styles the required icon for form components. It is included in the ::required-icon-style pseudo-element for the form components (e.g. af|inputText::required-icon-style)
我读了devguide on alias skinning,但这没有帮助。
:alias
究竟是什么?
答案 0 :(得分:0)
直接来自文档
如果你想将font-family更改为Arial,那么 你需要将Aah的每一次使用都替换为Arial。好吧,在 皮肤你不需要这样做。您可以使用:别名功能。一个 结束于的皮肤选择器:别名是永远不会被写出来的 到生成的CSS-2样式表。相反,它包含在其他中 皮肤选择器,并且可用于更改css属性 一个地方,而不是几十个或几百个地方。