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

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

WBOY
Release: 2016-06-24 11:36:10
Original
1297 people have browsed it

<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>
Copy after login


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


回复讨论(解决方案)

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template