آموزش طراحی وب سایت جلسه دوم – جداول

21
ت ی سا ی وب ح را ط ش وز م ا داول ه دوم – ج س ل ج ی وب ح را ط س ی دز ت د رت گی ت ماش ت ر ی س* ی, ب عاب لا ط رای ا ب او ت ماش: ت مازه ش09125773990 09371410986 C ک ی ن رو کی ل ا ت سK ی: [email protected]

Upload: callia

Post on 10-Feb-2016

69 views

Category:

Documents


2 download

DESCRIPTION

آموزش طراحی وب سایت جلسه دوم – جداول. تدریس طراحی وب برای اطلاعات بیشتر تماس بگیرید تاو شماره تماس: 09125773990 09371410986 پست الکترونیک : [email protected]. Tables. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: آموزش طراحی وب سایت جلسه دوم – جداول

آموزش طراحی وب سایتجلسه دوم – جداول

تدریس طراحی وببرای اطالعات بیشتر تماس بگیرید

تاو09125773990شماره تماس:

09371410986 : پست الکترونیک

[email protected]

Page 2: آموزش طراحی وب سایت جلسه دوم – جداول

Tables

Page 3: آموزش طراحی وب سایت جلسه دوم – جداول
Page 4: آموزش طراحی وب سایت جلسه دوم – جداول

• Inside the <table> element, the table is written out row by row. A row is contained inside a <tr> element — which stands for table row.

• And each cell is then written inside the row element using a <td> element — which stands for table data.

Page 5: آموزش طراحی وب سایت جلسه دوم – جداول

<table border="1"><tr>

<td>Row 1, Column 1</td><td>Row 1, Column 2</td>

</tr><tr>

<td>Row 2, Column 1</td><td>Row 2, Column 2</td>

</tr>

</table>

Page 6: آموزش طراحی وب سایت جلسه دوم – جداول

<table border="1">

Page 7: آموزش طراحی وب سایت جلسه دوم – جداول

Basic Table Elements and Attributes

The align Attribute<table border="1" align="left">

Page 8: آموزش طراحی وب سایت جلسه دوم – جداول

The cellpadding Attributecellpadding="5" or cellpadding="2%"The cellspacing Attribute cellspacing="6" or cellspacing="2%"

Page 9: آموزش طراحی وب سایت جلسه دوم – جداول
Page 10: آموزش طراحی وب سایت جلسه دوم – جداول

<table border="1"><tr><th></th><th>Outgoings ({$})</th><th>Receipts ({$})</th><th>Profit ({$})</th></tr><tr><th>Quarter 1 (Jan-Mar)</th><td>11200.00</td><td>21800.00</td><td><b>10600.00</b></td></tr></table>

Page 11: آموزش طراحی وب سایت جلسه دوم – جداول
Page 12: آموزش طراحی وب سایت جلسه دوم – جداول

Advanced Tables

<table border="1"><caption>Spanning columns using the colspan

attribute</caption><tr><td bgcolor="#efefef" width="100"

height="100">&nbsp;</td>

Page 13: آموزش طراحی وب سایت جلسه دوم – جداول

Adding a <caption> to a Table

To add a caption to a table, you just use the <caption> element after the opening <table> tag and before the first row or header:

<table><caption> … </caption><tr>…..

Page 14: آموزش طراحی وب سایت جلسه دوم – جداول

<td bgcolor="#999999" width="100" height="100">&nbsp;</td><td bgcolor="#000000" width="100" height="100">&nbsp;</td></tr><tr><td bgcolor="#efefef" width="100" height="100">&nbsp;</td><td colspan="2" bgcolor="#999999">&nbsp;</td></tr><tr><td colspan="3" bgcolor="#efefef" height="100">&nbsp;</td></tr></table>

Page 15: آموزش طراحی وب سایت جلسه دوم – جداول

Spanning Columns Using the colspan Attribute

As you saw when looking at the <td> and <th> elements, both can carry an attribute that allows the table cell to span more than one column.

Page 16: آموزش طراحی وب سایت جلسه دوم – جداول
Page 17: آموزش طراحی وب سایت جلسه دوم – جداول

<table border="1"><caption>Spanning rows using the colspan

attribute</caption><tr><td bgcolor="#efefef" width="100"

height="100">&nbsp;</td>

Page 18: آموزش طراحی وب سایت جلسه دوم – جداول

<td bgcolor="#999999" width="100" height="100">&nbsp;</td><td rowspan="3" bgcolor="#000000" width="100"

height="100">&nbsp;</td></tr><tr><td bgcolor="#efefef" height="100">&nbsp;</td><td rowspan="2" bgcolor="#999999">&nbsp;</td></tr><tr><td bgcolor="#efefef" height="100">&nbsp;</td></tr></table>

Page 19: آموزش طراحی وب سایت جلسه دوم – جداول

Spanning Rows Using the rowspan Attribute

• The rowpsan attribute does much the same thing as the colspan attribute, but it works in the opposite direction; it allows cells to stretch vertically across cells.

Page 20: آموزش طراحی وب سایت جلسه دوم – جداول
Page 21: آموزش طراحی وب سایت جلسه دوم – جداول

Exercises