如果您使用HTML编制日历,您会使用表格标签还是Div标签?

问题描述:

我将公司的日历转换为XSL,并将所有表格更改为div。它工作相当不错,但我有一个很多8天的星期bug,最初的工作,由于不稳定的跨浏览器间距问题。但我正在阅读另一篇文章,关于何时使用表v。divs和一致似乎是,你应该只使用divs网页的部分之间的真正分割,并且只使用表格的表格数据。

I converted my company's calendar to XSL and changed all the tables to divs. It worked pretty well, but I had a lot of 8 day week bugs to work out initially owing to precarious cross-browser spacing issues . but I was reading another post regarding when to use tables v. divs and the consensus seemed to be that you should only use divs for true divisions between parts of the webpage, and only use tables for tabular data.

我不确定我是否可以使用XSL表,但我想跟进讨论Div和表,讨论一个理想的方式网络日历和也许两个的联合。

I'm not sure I could even have used tables with XSL but I wanted to follow up that discussion of Divs and Tables with a discussion of the ideal way to make a web calendars and maybe a union of the two.

日历是使用表格的完美原因!日历本身存在表格数据和HTML表格有助于表示表格数据。和HTML表标记提供了几乎所有的CSS钩子你需要关联CSS选择器与表的各个部分来装扮。

A calendar is the perfect reason to use a table! Calendars inherently present tabular data and HTML tables are good at presenting tabular data. And HTML table markup provides nearly all the CSS hooks you need to associate CSS selectors with various parts of the table to dress it up.

我都是使用DIV来布局 - 但是坚持使用表格数据。

I'm all for using DIVs for layout--but stick with tables for tabular data.

这是一篇关于如何使用CSS打造表格的酷文章:
http://www.smashingmagazine.com/2008/08/13/top-10-css-table-designs

Here is a cool article on how to dress up tables with CSS: http://www.smashingmagazine.com/2008/08/13/top-10-css-table-designs