CSS文件包含一些样式表规则,这些规则可以应用于JSF组件能够呈现的HTML元素,也可以被简单地包含在jsf页面的组件之间。
CSS files contain style sheet rules that apply to the HTML elements that can be rendered by JSF components, or that can simply be included between the components of the JSF page.
如果状态为BAD,我们将在站点名称旁边显示摘要,并且CSS文件中名为BAD的样式将指出呈现属性—本例中为红色文本。
If the status is equal to BAD, we display the summary next to the name of the site and a style named BAD in the CSS file dictates the rendering attributes - red text in this example.
将呈现样式和模板文件从系统文件中分开,这样站点更新的时候,不会使站点的视屏产生巨大的变化。
It separates the presentation styles and template files from the system files so the site will upgrade without drastic changes to the visual presentation of the site.
应用推荐