⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 025_html_tables.html

📁 学习时曾经用到的资料
💻 HTML
字号:
<html>
<head>
<title>HTML表格(tables)-HTML教程-网页教程与代码的中文站点-布啦布啦-blabla.cn</title>
<meta name="author" content="www.blabla.cn">
<meta name="keywords" content="HTML表格, html table,HTML代码,HTML教程,cellspacing,cellpadding,tr,td,colspan,rowspan,background,网页教程和代码的中文网站,网页制作,源代码,示例,布啦布拉,blabla.cn,examples">
<meta name="description" content="-网页教程与代码的中文站点-网页制作-布啦布啦-blabla.cn">
<meta name="generator" content="blabla buildsite v2.0 - C:\CodeBank\BLABLA\blablasource\webtutorials\100_html\025_HTML_tables.txt">
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../styles/bla01.css" type="text/css">

<script type="text/javascript">
function WsFvt() {
    window.external.addFavorite(
        "../default.htm", 
        "布啦布啦网页教程与代码[www.blabla.cn]");
}

function WsHome() {
    event.srcElement.style.behavior = "url(#default#homepage)";
    event.srcElement.setHomePage("../default.htm");
}

function WsActOn() {
    event.srcElement.className = "wsacton";
}

function WsAct() {
    event.srcElement.className = "wsact";
}

</script>
</head>
<body class=wsbody>

<div class=wsheader>
<table cellpadding=0 cellspacing=0 class=wslogoarea>
<td class=ws_a1><img src="../images/logo/blabla_logo01.gif" class=blablalogo03></td>
<td class=ws_a2>
<div>
<font class=wsact onmouseover="WsActOn()" onmouseout="WsAct()" onclick="WsFvt()">加入收藏</font> |
<font class=wsact onmouseover="WsActOn()" onmouseout="WsAct()" onclick="WsHome()">设为首页</font>|
<a href="mailto:webmaster@blabla.cn">联系我们</a>
</div>
<div style = "height:20px;"></div>
<div>
<a href="index.html">HTML教程</a> |
<a href="100_html_examples.html">HTML示例代码</a> |
<a href="../css_tutorials/index.html">CSS教程</a> |
<a href="../css_tutorials/100_CSS_examples.html">CSS示例代码</a> |
<a href="../js_tutorials/index.html">Javascript教程</a> |
<a href="../js_tutorials/100_js_examples.html">Javascript示例代码</a>
</div>
</td>
</tr></table>
</div>

<div class=wscontent>
<table cellpadding=0 cellspacing=0 class=wscgrid>
<td class=a1>
<div class=wsmenu><div class=box><div class=box>
<!--menupart Start  -->
<a href = "../index.html"><H1>网站首页</H1></a>
<a href = "index.html" ><H1>HTML网页教程与代码</H1></a><a href = "001_HTML_Overview.html" ><P>HTML基本概念</P></a><a href = "005_Basic_HTML_Tags.html" ><P>HTML基础Tag</P></a><a href = "010_Format_Tags.html" ><P>HTML常用格式</P></a><a href = "015_HTML_entities.html" ><P>HTML特殊字符</P></a><a href = "020_HTML_links.html" ><P>HTML超链接(Hyperlinks)</P></a><a href = "022_html_path.html" ><P>HTML相对和绝对路径</P></a><a href = "025_HTML_tables.html" ><P><B>HTML表格(Tables)</B></P></a><a href = "030_html_frame.html" ><P>HTML框架(Frames)</P></a><a href = "035_html_list.html" ><P>HTML列表(Lists)</P></a><a href = "037_html_form.html" ><P>HTML表单(Forms)</P></a><a href = "040_html_image.html" ><P>HTML图片(Images)</P></a><a href = "042_html_font.html" ><P>HTML字体(Fonts)</P></a><a href = "045_html_bgcolor_background.html" ><P>HTML背景颜色和图片</P></a><a href = "047_html_head.html" ><P>HTML头部信息(Head)</P></a><a href = "050_html_color_ref.html" ><P>HTML颜色参考(Color)</P></a><a href = "100_html_examples.html" ><P>HTML演示示例代码</P></a><a href = "../html_ref/index.html" ><H1>HTML参考(Reference)</H1></a><a href = "../html_tag_ref/index.html" ><P>HTML元素参考</P></a><a href = "../html_attr_ref/index.html" ><P>HTML属性参考</P></a><a href = "../css_tutorials/index.html" ><H1>CSS教程和代码</H1></a><a href = "../css_tutorials/001_CSS_Overview.html" ><P>CSS简介</P></a><a href = "../css_tutorials/005_CSS_Syntax.html" ><P>CSS语法</P></a><a href = "../css_tutorials/010_css_font.html" ><P>CSS常用字体属性(font)</P></a><a href = "../css_tutorials/015_css_text.html" ><P>CSS常用文本属性</P></a><a href = "../css_tutorials/020_CSS_background.html" ><P>CSS常用背景属性</P></a><a href = "../css_tutorials/025_css_border.html" ><P>CSS常用边框属性(border)</P></a><a href = "../css_tutorials/030_css_margin.html" ><P>CSS边距属性(margin)</P></a><a href = "../css_tutorials/035_css_padding.html" ><P>CSS间隙属性(padding)</P></a><a href = "../css_tutorials/040_css_diff_border_margin_padding.html" ><P>边框/边距/间隙的区别</P></a><a href = "../css_tutorials/045_css_list_style.html" ><P>CSS列表属性(list-style)</P></a><a href = "../css_tutorials/050_pseudo_class.html" ><P>CSS常用伪类(pseudo-class)</P></a><a href = "../css_tutorials/060_css_length_unit.html" ><P>CSS长度单位参考</P></a><a href = "../css_tutorials/100_CSS_examples.html" ><P>CSS演示示例代码</P></a><a href = "../js_tutorials/index.html" ><H1>Javascript教程和代码</H1></a><a href = "../js_tutorials/001_js_overview.html" ><P>Javascript简介</P></a><a href = "../js_tutorials/020_js_where2write.html" ><P>Javascript写在哪里</P></a><a href = "../js_tutorials/025_js_variables.html" ><P>Javascript变量(Variables)</P></a><a href = "../js_tutorials/090_js_reserved_words.html" ><P>Javascript保留字</P></a><a href = "../js_tutorials/100_js_examples.html" ><P>Javascript入门代码示例</P></a><a href = "../js_tutorials/101_js_dom_examples.html" ><P>Javascript DOM代码示例</P></a><a href = "../ref/index.html" ><H1>参考(Reference)</H1></a><a href = "../ref/ascii.html" ><P>ASCII编码表</P></a><a href = "../ref/iso_latin_1.html" ><P>ISO Latin-1字符集</P></a>
<!--menupart end  -->
</div></div></div>
</td>
<td class=a2><div class=wsarticle><div class=articlepart id = ap>
<div class=wstitle><div class=box><div class=box><h1>如何创建HTML表格</h1></div></div></div>
<!--articlepart start-->
<div class = changefont>
<span onclick= "ap.className='ArticlePartBig';"  class = bfont>大字体</span>
<span onclick= "ap.className='ArticlePart';"  class = sfont>小字体</span>
</div>
<P>HTML表格用&lt;table&gt;表示。一个表格可以分成很多行(row),用&lt;tr&gt;表示;每行又可以分成很多单元格(cell),用&lt;td&gt;表示。</P><P>这三个Tag是创建表格最常用的Tag。</P><P><A href="../html_examples/012_simple_tables.html">示例</A></P><H2>border属性</H2><P>在缺省情况下,如果不设置表格的边界,表格是不显示边界的。</P><P><A href="../html_examples/022_table_no_border.html">示例:不显示边界的表格</A></P><P>要显示表格的边界,可使用border这个属性。</P><P><A href="../html_examples/023_table_with_border.html">示例:显示边界的表格</A></P><H2>表格的表头</H2><P>用&lt;th&gt;来表示表格的表头,表头的字是粗体显示的。</P><P><A href="../html_examples/024_table_heading.html">示例: 有表头的表格</A></P><H2>空的单元格</H2><P>如果表格的单元格&lt;td&gt;&lt;/td&gt;之间没有内容,那么这个单元格的边界是不会被显示出来的,尽管整个表格已设置边界值。要显示这个单元格的边界,可以插入一个&amp;nbsp;空格符。</P><P><A href="../html_examples/025_table_empty_cell.html">示例</A></P><H2>更多示例</H2><P><A href="../html_examples/026_table_caption.html">有标题的表格</A></P><P>这个示例演示如何用&lt;caption&gt;在一个表格上加上标题。</P><P><A href="../html_examples/027_colspan_rowspan.html">包含多列或多行的单元格</A></P><P>这个示例演示如何用colspan,rowspan设置多列或者多行的单元格。</P><P><A href="../html_examples/028_table_cell_content.html">单元格里的内容</A></P><P>这个例子演示单元格&lt;td&gt;&lt;/td&gt;里面的内容。单元格的内容可以是文字,图片,超链接,Form,表格等。</P><P><A href="../html_examples/029_cellpadding.html">单元格内容与单元格边界之间的距离</A></P><P>这个示例教你如何用cellpadding这个属性设置单元格内容与单元格边界之间的距离。</P><P><A href="../html_examples/030_cellspacing.html">单元格之间的距离</A></P><P>这个示例教你如何用cellspacing这个属性设置单元格之间的距离</P><P><A href="../html_examples/031_table_bgcolor_bgimage.html">设置表格的背景颜色和背景图片</A></P><P>这个示例演示如何用bgcolor属性设置表格的背景颜色,如何用background属性为表格添加背景图片。</P><P><A href="../html_examples/033_cell_bgcolr_bgimage.html">设置单元格的背景颜色和背景图片</A></P><P>这个示例演示如何用bgcolor属性设置单元格的背景颜色,如何用background属性为单元格添加背景图片。</P><P><A href="../html_examples/032_table_align.html">单元格内容的对齐方式</A></P><P>这个示例教你如何用align属性设置单元格的对齐方式。</P>
<!--articlepart end-->

</div><div></td>
<td class=a3><div class=wslink>

<div class=wsportrait>
<img src="../images/logo/blabla_logo02.gif" class=blablalogo21>
</div>

<div class=wslgreen><div class=box><div class=box>
<h2>布啦布啦旗下网站</h2>
<p><a href="../index.html">布啦布啦网页教程与代码</a></p>
<p><a href="http://www.wowstory.com">小斧的魔兽世界</a></p>
<p><a href="../wow/index.html">小斧的魔兽世界镜像</a></p>
<p><a href="http://hardware.blabla.cn">数码资讯</a></p>
</div></div></div>


<div style= "background-color:#FFFFF0;
    border-top:3px solid #FFCC66; border-bottom:3px solid #FFCC66;border-left:1px solid #FFE0A1;border-right:1px solid #FFE0A1;">
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="_top">
<table border="0" bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">

</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="blabla.cn"></input>
<input type="text" name="q" size="18" maxlength="255" value=""></input>
</td></tr>
<tr>
<td>&nbsp;</td>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value=""></input>
<font size="-1" color="#000000" style = "font-size:12px;">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="blabla.cn" checked="checked"></input>
<font size="-1" color="#000000"  style = "font-size:12px;">blabla.cn</font>
</td>
</tr>
</table>
<input type="submit" name="sa" value="Google 搜索"></input>
<input type="hidden" name="client" value="pub-3105632846497229"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="GB2312"></input>
<input type="hidden" name="oe" value="GB2312"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input>
<input type="hidden" name="hl" value="zh-CN"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
</div>
<div style ="height:8px;font-size:8px;"></div>



<!--Google Adsense start-->
<div id="googlead" style = "width:160px; height:600px;" ></div>
<!--Google Adsense end-->

</div>
</td></tr>
</table></div>

<div class=wsfooter>
<table cellpadding=0 cellspacing=0 class=wsgrid>
<tr><td class=ws_a1>
<!--footer label start-->
&copy; 2005 blabla.cn版权所有 &nbsp;
<!--51yes statistics start-->
<script language="javascript" src="http://count1.51yes.com/click.aspx?id=13420718&logo=12"></script>
<!--51yes statistics end-->
</td></tr></table>
</div>


<!--Google Ad Script Start -->
<div id="googleadcode" style="display:none;">
<script type="text/javascript"><!--
google_ad_client = "pub-3105632846497229";
google_alternate_color = "FFFFFF";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "A8C8FF";
google_color_bg = "F5F9FF";
google_color_link = "0058DB";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

<script language="javascript">
if(document.all.item("googlead") != null)
{
  googlead.innerHTML = googleadcode.innerHTML;
}
</script>
<!--Google Ad Script End-->

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -