зеркало из https://github.com/mozilla/gecko-dev.git
292 строки
9.6 KiB
Plaintext
292 строки
9.6 KiB
Plaintext
<begin>
|
|
<open container="HTML">
|
|
<open container="META">
|
|
<leaf tag="META">
|
|
<attr key="HTTP-EQUIV" value="Content-Type"/>
|
|
<attr key="CONTENT" value="text/html; charset=iso-8859-1"/>
|
|
</leaf>
|
|
<close container="head">
|
|
<open container="META">
|
|
<leaf tag="META">
|
|
<attr key="NAME" value="GENERATOR"/>
|
|
<attr key="CONTENT" value="Mozilla/4.09 [en] (WinNT; U) [Netscape]"/>
|
|
</leaf>
|
|
<close container="head">
|
|
<open container="TITLE">
|
|
<title value="test4"/>
|
|
<close container="head">
|
|
<open container="STYLE">
|
|
<leaf tag="STYLE">
|
|
<attr key="
|
|
BODY { font-size: 12pt; }
|
|
" value="</STYLE>"/>
|
|
<content value=" BODY { font-size: 12pt; } "/>
|
|
</leaf>
|
|
<close container="head">
|
|
<open container="BODY">
|
|
<newline/>
|
|
<newline/>
|
|
<open container="H1">
|
|
<newline/>
|
|
<text value="Example 4: Some simple tables."/>
|
|
<close container="H1">
|
|
<newline/>
|
|
<newline/>
|
|
<open container="TABLE">
|
|
<attr key="BORDER" value=""/>
|
|
</open>
|
|
<open container="TBODY">
|
|
<open container="TR">
|
|
<open container="TH">
|
|
<attr key="BACKGROUND" value="bg.jpg"/>
|
|
</open>
|
|
<text value="Color"/>
|
|
<entity value="bs"/>
|
|
<close container="TH">
|
|
<open container="TH">
|
|
<attr key="BACKGROUND" value="bg.jpg"/>
|
|
</open>
|
|
<text value="Meaning"/>
|
|
<entity value="bs"/>
|
|
<close container="TH">
|
|
<close container="TR">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<attr key="BGCOLOR" value="#90EE90"/>
|
|
</open>
|
|
<text value="lightgreen"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Light green is used on cells that have a colspan"/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<attr key="BGCOLOR" value="#F0E68C"/>
|
|
</open>
|
|
<text value="khaki"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Khaki is used on cells that have a rowspan"/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<attr key="BGCOLOR" value="#D3D3D3"/>
|
|
</open>
|
|
<text value="lightgrey"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Light grey is used on cells that have a rowspan "/>
|
|
<open container="B">
|
|
<text value="and"/>
|
|
<close container="B">
|
|
<text value=" "/>
|
|
<text value="a colspan"/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<close container="TBODY">
|
|
<close container="TABLE">
|
|
<newline/>
|
|
<entity value="bs"/>
|
|
<newline/>
|
|
<open container="TABLE">
|
|
<attr key="BORDER" value=""/>
|
|
<attr key="WIDTH" value="100%"/>
|
|
</open>
|
|
<open container="CAPTION">
|
|
<text value="Table 1 has a caption at the top."/>
|
|
<entity value="bs"/>
|
|
<text value=" "/>
|
|
<text value="It is defined to be 100%"/>
|
|
<newline/>
|
|
<text value="of it's parent's width."/>
|
|
<close container="CAPTION">
|
|
<open container="TBODY">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<attr key="COLSPAN" value="2"/>
|
|
<attr key="BGCOLOR" value="#90EE90"/>
|
|
</open>
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Stuff to test out table cell layout. This should be long enough."/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<attr key="COLSPAN" value="2"/>
|
|
<attr key="BGCOLOR" value="#90EE90"/>
|
|
</open>
|
|
<text value="Stuff to test out table cell layout."/>
|
|
<newline/>
|
|
<text value="This should be long enough."/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Stuff to test out table cell layout. This should be long enough."/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<close container="TBODY">
|
|
<close container="TABLE">
|
|
<newline/>
|
|
<entity value="bs"/>
|
|
<newline/>
|
|
<open container="TABLE">
|
|
<attr key="BORDER" value=""/>
|
|
<attr key="WIDTH" value="500"/>
|
|
</open>
|
|
<open container="TBODY">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<attr key="ROWSPAN" value="2"/>
|
|
<attr key="BGCOLOR" value="#F0E68C"/>
|
|
</open>
|
|
<text value="Stuff to test out table cell layout."/>
|
|
<newline/>
|
|
<text value="This should be long enough."/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Stuff to test out table cell layout. This should be long enough."/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<close container="TBODY">
|
|
<open container="CAPTION">
|
|
<attr key="ALIGN" value="BOTTOM"/>
|
|
</open>
|
|
<text value="Table 2 has a bottom caption."/>
|
|
<entity value="bs"/>
|
|
<text value=" "/>
|
|
<text value="It's width is"/>
|
|
<newline/>
|
|
<text value="500 pixels."/>
|
|
<close container="CAPTION">
|
|
<close container="TABLE">
|
|
<newline/>
|
|
<entity value="bs"/>
|
|
<newline/>
|
|
<open container="TABLE">
|
|
<attr key="BORDER" value=""/>
|
|
</open>
|
|
<open container="CAPTION">
|
|
<text value="Table 3 has auto-width (no width param specified.)"/>
|
|
<close container="CAPTION">
|
|
<open container="TBODY">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<attr key="COLSPAN" value="2"/>
|
|
<attr key="ROWSPAN" value="2"/>
|
|
<attr key="BGCOLOR" value="#D3D3D3"/>
|
|
</open>
|
|
<text value="Stuff to test out table cell"/>
|
|
<newline/>
|
|
<text value="layout. This should be long enough."/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Stuff to test out table cell layout. This should be long enough."/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="more text"/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<close container="TBODY">
|
|
<close container="TABLE">
|
|
<newline/>
|
|
<entity value="bs"/>
|
|
<newline/>
|
|
<open container="TABLE">
|
|
<attr key="BORDER" value=""/>
|
|
<attr key="COLS" value="3"/>
|
|
</open>
|
|
<open container="CAPTION">
|
|
<text value="Table 4 is the same as Table 3, but with equal column widths."/>
|
|
<entity value="bs"/>
|
|
<close container="CAPTION">
|
|
<open container="TBODY">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<attr key="COLSPAN" value="2"/>
|
|
<attr key="ROWSPAN" value="2"/>
|
|
<attr key="BGCOLOR" value="#D3D3D3"/>
|
|
</open>
|
|
<text value="Stuff to test out table cell"/>
|
|
<newline/>
|
|
<text value="layout. This should be long enough."/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<open container="TR">
|
|
<open container="TD">
|
|
<text value="Cell"/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="Stuff to test out table cell layout. This should be long enough."/>
|
|
<close container="TD">
|
|
<open container="TD">
|
|
<text value="more text"/>
|
|
<close container="TD">
|
|
<close container="TR">
|
|
<close container="TBODY">
|
|
<close container="TABLE">
|
|
<newline/>
|
|
<entity value="bs"/>
|
|
<newline/>
|
|
<newline/>
|
|
<newline/>
|
|
<close container="body">
|
|
<close container="html">
|
|
</begin>
|