现在的位置: 首页 > 综合 > 正文

图片和文字在表格中的对齐方式

2013年06月18日 ⁄ 综合 ⁄ 共 971字 ⁄ 字号 评论关闭
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
body {
	font-size:11px;
}
label {
	text-align:center;
	line-height:25px;
	height:25px;
} 
td {
	text-align:center;
}
#head1 td {
	width:130px !important;
}
</style>
</head>

<body>
  <table border="1" align="center" width="600">
    <tr>
      <td><div>
          <table border="1" cellpadding="0" cellspacing="0" width="100%">
            <tr id="head1">
              <td >
               <div style=" position:relative;"> <label>UsageServiceType</label><img src="img\filterbt_18.gif" style=" position: absolute; right:0;"/></div></td>  
              <td >
               <div style=" position:relative;"> <label>UsageServiceType</label><img src="img\filterbt_18.gif" style=" position: absolute; right:0;"/></div></td>            
              <td > </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
          </table>
        </div></td>
    </tr>
  </table>
</body>
</html>

 

抱歉!评论已关闭.