是否有一个名为"rowgroup"的属性?就像"colgroup"一样在XHTML中? [英] Is there a property named "rowgroup" like "colgroup" in XHTML?
问题描述
以下w3c
文档提到了rowgroup
- http://www.w3.org /TR/html401/struct/tables.html#h-11.2.6
- http://www.w3.org/TR/html401 /struct/tables.html#rowgroups
- http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6
- http://www.w3.org/TR/html401/struct/tables.html#rowgroups
<!ENTITY % Scope "(row|col|rowgroup|colgroup)">
有这样的属性或属性吗?
Is there such an attribute or property?
推荐答案
不,没有这样的元素.如果要对行进行分组,可以将特定的tr
元素放在同一类中.
No, there is no such element. If you want to group rows, you can put the particular tr
elements in the same class.
您所指的行组"是由thead
,tbody
和tfoot
之类的元素自然形成的行组.并且 Scope 用于定义在同名属性scope
,用于引用当前th
元素为以下内容提供信息的范围:
The "rowgroup" you are referring to is a row group that is naturally formed by an element like thead
, tbody
and tfoot
. And Scope is used to define the value set in the same-named attribute scope
that is used to refer to the scope the current th
element is providing information for:
<!ELEMENT (TH|TD) - O (%flow;)* -- table header cell, table data cell-->
<!-- Scope is simpler than headers attribute for common tables -->
<!ENTITY % Scope "(row|col|rowgroup|colgroup)">
<!-- TH is for headers, TD for data, but for cells acting as both use TD -->
<!ATTLIST (TH|TD) -- header or data cell --
%attrs; -- %coreattrs, %i18n, %events --
abbr %Text; #IMPLIED -- abbreviation for header cell --
axis CDATA #IMPLIED -- comma-separated list of related headers--
headers IDREFS #IMPLIED -- list of id's for header cells --
scope %Scope; #IMPLIED -- scope covered by header cells --
rowspan NUMBER 1 -- number of rows spanned by cell --
colspan NUMBER 1 -- number of cols spanned by cell --
%cellhalign; -- horizontal alignment in cells --
%cellvalign; -- vertical alignment in cells --
>
此处 Scope 是参数实体,其值为(row|col|rowgroup|colgroup)
.然后在scope
的属性值列表的声明中使用
Here Scope is a parameter entity with the value (row|col|rowgroup|colgroup)
. This entity is then refered to in the declaration of the attribute value list of scope
with the parameter entity reference %Scope;
.
SGML中的参数实体就像变量,并且对此类参数实体的引用已替换为其值.这意味着以下两个属性定义相等:
Parameter entities in SGML are like variables and references to such parameter entities are replaced by its values. That means the following two attribute definitions are equal:
<!ENTITY % Scope "(row|col|rowgroup|colgroup)">
<!ATTLIST (FOOBAR)
scope %Scope; #IMPLIED
>
<!ATTLIST (FOOBAR)
scope (row|col|rowgroup|colgroup) #IMPLIED
>
这篇关于是否有一个名为"rowgroup"的属性?就像"colgroup"一样在XHTML中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!