日期:2013-10-10  浏览次数:20855 次

表格中数据的陈列方式有两种,分别是左右陈列和上下陈列。左右陈列是以ALIGN属性来设置,而上下陈列则由VALIGN属性来设置。其中左右陈列的位置可分为三种:居左(left)、居右(right)和居中(center);而上下陈列基本上比较常用的有四种:上齐(top)、居中(middle)、下齐(bottom)和基线(baseline)。

  #=left, center, right



  #=top,middle,bottom,baseline


左右陈列


  

  
居左居中居右
ABC

显示结果:

居左居中居右
ABC


上下陈列


  
    
上齐居中下齐基线
ABCD

显示结果:

    上齐居中下齐基线
    ABCD