最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin3浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论