<表>与< DIV>何时何地 [英] <TABLE> vs. <DIV> when and where

查看:72
本文介绍了<表>与< DIV>何时何地的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计,


似乎有些事情没有使用表格进行布局,但使用div

代替。我不确定我是否有这个权利。如果输出看起来像你想要的那么多b / b,那么你想用的标签应该没关系,

或者我错过了什么?


tia,

达沃

Hi Folks,

There seems to be something about not using tables for layout, but use divs
instead. I''m not sure if I''ve got this right. If the output looks like what
you want, then it shouldn''t matter what tags you use I would have thought,
or am I missing something?

tia,
Davo

推荐答案

达沃写道:
Davo wrote:

似乎有些事情没有使用表格进行布局,但使用div

代替。
There seems to be something about not using tables for layout, but use divs
instead.



不,使用最合适的标记来描述您的内容,然后使用

CSS进行演示。

No, use the most appropriate markup to describe your content, then use
CSS for presentation.


如果输出看起来像你想要的那样,那么你想用的标签应该没关系,

或我错过了什么?
If the output looks like what you want, then it shouldn''t matter what tags you use I would have thought,
or am I missing something?



文本浏览器。听觉浏览器。小屏幕设备(如手机

浏览器)。搜索引擎索引机器人。等等。


-

David Dorward

< http://dorward.me.uk/>

Text browsers. Aural browsers. Small screen devices (like mobile phone
browsers). Search engine indexing robots. etc. etc.

--
David Dorward
<http://dorward.me.uk/>


凝视我的水晶球,我观察到达沃。 < wa ****** @ hotmail.com>

写在

新闻:45 *************** *******@per-qv1-newsreader-01.iinet.net.au:
Gazing into my crystal ball I observed "Davo" <wa******@hotmail.com>
writing in
news:45**********************@per-qv1-newsreader-01.iinet.net.au:

嗨伙计,


似乎有些事情没有使用表格进行布局,但是使用

divs代替。我不确定我是否有这个权利。如果输出看起来像你想要的那样,那么你使用什么标签并不重要我会想到,或者我错过了什么?

tia,

达沃

Hi Folks,

There seems to be something about not using tables for layout, but use
divs instead. I''m not sure if I''ve got this right. If the output looks
like what you want, then it shouldn''t matter what tags you use I would
have thought, or am I missing something?

tia,
Davo



有几个优点,包括用户和作者。通过

去除presenational标记和使用外部样式表,过去需要花费几秒钟的时间才需要花费几秒钟。


当然,你想避免div-itis。不要滥用它们,并将它们嵌入它们的深度。使用正确的作业标记,如果它是一个

段落使用< p> ;,如果它是列表使用列表标记,如果它是表格数据

使用表格。你会发现通过使用语义标记,你可以避免

div-itis。


请记住,最少量的标记是最轻的页面。你的

页面应该很轻松,内容丰富。为用户提供更快的下载

,更轻松地为搜索引擎编制索引,

也可以更轻松地解析浏览器。


HTH

-

Adrienne Boswell在家

Arbpen网站设计服务
http://www.cavalcade-of-coding.info

请回复小组,以便其他人可以分享

There are several advantages, both for the user and the author. By
removing presenational markup and using an external stylesheet, what
used to take hours and days, takes a few seconds.

Of course, you want to avoid div-itis. Do not abuse them, and nest them
umpteen levels deep. Use the correct markup for the job, if it''s a
paragraph use <p>, if it''s a list use list markup, if it''s tabular data
use a table. You will find that by using semantic markup, you can avoid
div-itis.

Remember that the least amount of markup makes the lightest page. Your
page should be light as a feather and full of content. Makes download
for the user much faster, indexing for the search engines much easier,
parsing for browsers easier as well.

HTH
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


" Davo"发布...

:似乎有些事情没有使用表格进行布局,

:但是使用div代替。我不确定我是否有这个权利。如果

:输出看起来像你想要的那样,那么你应该使用的标签是不是很重要?或者我错过了什么?


你错过了所有的心痛和痛苦! :-)


桌子最终更容易实现,理解和欣赏。

适当时坚持使用桌子!


-

Jim Carlock

回复小组。
"Davo" posted...
: There seems to be something about not using tables for layout,
: but use divs instead. I''m not sure if I''ve got this right. If the
: output looks like what you want, then it shouldn''t matter what
: tags you use I would have thought, or am I missing something?

You''re missing all the heartache and suffering! :-)

Tables end up easier to implement and understand and appreciate.
Stick with tables when appropriate!

--
Jim Carlock
Post replies to the group.


这篇关于&LT;表&gt;与&lt; DIV&gt;何时何地的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆