admin管理员组

文章数量:1432351

colspan:

<td colspan="4"> 
</td>

column-span

<td style="column-span:4"> 
</td>

The colspan does working properly. but column-span does not working.


I have little bit confusion with the full name :

because colspan full name is column span. but column-span is different from colspan.

  • Please explain the meaning of colspan and column-span

  • And tell me the difference.

colspan:

<td colspan="4"> 
</td>

column-span

<td style="column-span:4"> 
</td>

The colspan does working properly. but column-span does not working.


I have little bit confusion with the full name :

because colspan full name is column span. but column-span is different from colspan.

  • Please explain the meaning of colspan and column-span

  • And tell me the difference.

Share Improve this question edited Apr 22, 2015 at 9:25 Ramesh Rajendran asked Apr 22, 2015 at 9:24 Ramesh RajendranRamesh Rajendran 38.8k49 gold badges159 silver badges240 bronze badges 1
  • Note: Browser support for column-span: is poor. Avoid using it. w3schools./cssref/css3_pr_column-span.asp – iCollect.it Ltd Commented Apr 22, 2015 at 9:25
Add a ment  | 

1 Answer 1

Reset to default 8

column-span: was designed for print-style layouts and is a pure CSS rule. It is used to span CSS columns (not table columns).

colspan the attribute is used for table TD elements to get them to span multiple columns in the table.

Note: Browser support for column-span: is poor. Avoid using it. http://www.w3schools./cssref/css3_pr_column-span.asp

本文标签: javascriptDifference between colspan and columnspan in cssStack Overflow