q<span style="text-align:center;width:200">text</span>q

解决方案 »

  1.   

    试过不行,还有高度也要居中!!!<span style="text-align:center;width:100;height:100;background-color:green;">text</span>
      

  2.   

    <span style="padding-top:40;text-align:center;width:100;height:100;background-color:green;">text</span>
      

  3.   

    <span style="text-align:center;width:100;height:100;background-color:green;">
    <table align=center width="100%" height="100%" border=0 cellpadding=0 cellspacing=0>
    <tr>
    <td align=center valign=middle>test</td>
    </tr>
    </table>
    </span>
      

  4.   

    <span style="width:100;height:100;background-color:green;"><table align=center valign=middle height="99%"><td>aaa</td></table></span>