当前位置: 首页 > 工具软件 > Stupid Table > 使用案例 >

css中div和spand,layout - DIV's vs. Tables or CSS vs. Being Stupid - Stack Overflow

李奕
2023-12-01

CSS may not be a religion, but it is how browsers interpret HTML for layout. Like it or not, all modern browsers use (some version) of the W3C box model. To continue to rely on tables is continue to rely on a methodology that is just plain wrong in the eyes of the people who design web rendering technology.

I know CSS can seem awfully complicated at times, but I believe it is a necessity in this day and age (trust me, your clients are going to want it).

If you don't feel comfortable taking the time really learn CSS (so it takes you seconds or minutes to position elements...not an hour), then you need to pass the layout work on to someone who knows really knows the front-end.

Yes, there are a lot of problems with the current browser implementations of CSS, but nothing so drastic that you should ever feel the need to return to table based layout. Just sit down and take the time to learn it, like you would any other language or framework.

The best online reference resource I've found is this one:

http://reference.sitepoint.com/css

But it might not hurt to look at a book like Designing With Web Standards which goes a long way in helping you to understand why this stuff is important.

 类似资料: