然而在大多数情况下,都是在CSS文件中定义样式类(参见清单5),以便可以将相同的样式规则应用于多个组件。
In most cases, however, you will define style classes (see Listing 5) in the CSS files so you can use the same style rules for multiple components.
在使用多种皮肤和样式时,有时很难知道某个特定的类使用的是哪个样式定义。
When using various skins and styles, it sometimes becomes difficult to keep track of which style definition will be used for a particular class.
在HTML文档的样式部分中,输入类名、一个空格和一个前花括号,开始定义。
In the style section of an HTML document, type the name of the class, a space, and an opening curly bracket to begin the definition.
五种链接样式的类及其样式定义。
Classes for the five link styles and their style definitions.
jsp示例(参见清单10)包含一个jsf表组件,该组件使用在TableStyles . css中定义的样式类。
The TableStyles.jsp example (see Listing 10) contains a JSF table component that USES the style classes defined in TableStyles.css.
css文件(参见清单10)定义了用于错误消息的ValidationError样式类
The valid.css file (see Listing 10) defines the ValidationError style class that is used for the error messages
然后,决定需要的类名并为这些类定义样式。
Then, name the classes you need and define the styles for those classes.
XSLT 2.0允许从样式表直接调用这些类,因而可以方便地为各种语言或其他需求添加自定义的排序函数。
The ability to invoke these classes from an XSLT 2.0 stylesheet makes it easy to add custom sorting functions for different languages or other requirements.
类似地,在HTML中,作者或编写工具可能会对段落和其他元素应用不同的样式属性,而不是定义可以重用的css类。
Similarly, in HTML, an author or tool might have applied individual style attributes to paragraphs and other elements rather than defining reusable CSS classes.
您可以采用动态的方式,创建bean来读取样式表中的类定义,然后把它转换成正确的HTML标记。
Taking a dynamic approach, you could create a bean to read the class definition from the stylesheet and then convert it to the proper HTML tags.
Classonly—一个您想为用其指定的每个元素定义样式属性的样式类的名称。
Class only - the name of the style class for which you want style properties defined for every element specified with that style class.
现在,我们来看看如何设置类选择符、相关联的类样式定义和html页面以及最后生成的Web显示页面。
Now let's look at how you might set up the class selectors, the associated class style definitions, the HTML page, and the resulting Web-displayed page.
为了使主题和外观顺利地工作,Portlet编程人员在其实现中使用了全局定义的标准化css样式类,例如在JSR 168和WSRP中定义的css样式类。
In order to make themes and skins work smoothly, portlet programmers use globally defined standardized CSS style classes, such as those defined in JSR 168 and WSRP, within their implementations.
用选择器类你可以将同一类型的HTML元素定义出不同的样式。
With the class selector you can define different styles for the same type of HTML element.
如果附加了样式表,则该样式表中定义的类将出现在列表中。
If you attached a style sheet, classes defined in that style sheet appear in the list.
使用类选择器可以为同一类型的HTML元素定义不同的样式。
With the class selector you can define different styles for the same type of HTML element.
用于定义列标题内容、布局和样式的属性可在许多相关的类上找到,并且其中一些属性具有类似或相同的功能。
Properties that define the content, layout, and style of a column header are found on many related classes, and some of these properties have functionality that is similar or the same.
用于定义列标题内容、布局和样式的属性可在许多相关的类中找到,并且其中一些属性具有类似或相同的功能。
Properties that define the content, layout, and style of a column header are found in many related classes, and some of these properties have functionality that is similar or the same.
用于定义列标题内容、布局和样式的属性可在许多相关的类中找到,并且其中一些属性具有类似或相同的功能。
Properties that define the content, layout, and style of a column header are found in many related classes, and some of these properties have functionality that is similar or the same.
应用推荐