javascript - Difference between colspan and column-span in css - Stack Overflow

colspan:<td colspan="4"> <td>column-span<td style="column-span:4"&

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745585061a4634485.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信