CSS和HTML布局 [英] css and HTML layout

查看:72
本文介绍了CSS和HTML布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好吗

哪一个更好< div>或表格以供表示,为什么请?谢谢

解决方案

嗨Div更好。霍华德博士在这个论坛上说得最好...


http ://www.thescripts.com/forum/thread774468.html

都不是。


在古代,人们使用表格进行布局,因为它是唯一可行的,但表格从未设计过布局,现在有更好的方法,使用表格进行布局是愚蠢的(参见本页顶部Howtos下的文章)。


A< div> element是一个用于为页面提供结构并将公共元素组合在一起的元素。除非有必要,否则永远不会自动决定在任何地方使用。有些页面根本不包含任何内容。


使用CSS和页面上所有html元素的正常流程来完成网页的布局。使用,表格或div的问题不值得问。


我有关于实用CSS布局提示,技巧和&的网站。技术。


http:// www .alistapart.com / articles / practicalcss /


最好的问候,
Angkana Jivaphaiboolsak


hello everyone
which one is better <div> or table for presentation and why please? thank you

解决方案

Hi Divs are better. DrHoward said it best in this forum...


http://www.thescripts.com/forum/thread774468.html


Neither.

In ancient days, people used tables for layout because it was the only thing that worked, but tables were never designed for layout and, now that there are better ways, using tables for layout is stupid (see article titled that under Howtos at the top of this page).

A <div> element is one used to provide structure to a page and group common elements together. It is never an automatic decision to use one anywhere unless it''s necessary. Some pages can contain none at all.

Laying out a web page is done with CSS and the normal flow of all html elements on a page. The question of which to use, tables or divs, is not one worth asking.


I have websit about Practical CSS Layout Tips, Tricks, & Techniques.


http://www.alistapart.com/articles/practicalcss/


Best Regards,
Angkana Jivaphaiboolsak


这篇关于CSS和HTML布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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