Home  >  Article  >  Web Front-end  >  关于Table 单元格高度的问题_html/css_WEB-ITnose

关于Table 单元格高度的问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:36:101290browse

<table  border="1px" align="center"  bgcolor="#669999"><tr  align="center"> <td align="center" valign="middle"> 各油气使用量          </td> <td align="center" valign="middle">          各年份油气总使用情况 </td></tr><tr align="center"><td align="center" valign="middle" height="0" >  <div id="canvas-holder" align="center" class="chart" >			<canvas id="chart-area"> 		</div> </td><td align="center" valign="middle" height="0" >  <div  class="chart">			<canvas id="canvas" ></canvas>		</div> </td>   </tr></table>


这样第二排每个单元格中都有一个Div我用来装其他东西的,在没装东西的时候怎么使第二排的高度Height=0?怎么写都不管用


回复讨论(解决方案)

好像懂了,要设置Canvas的高度而不是单元格的- -

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn