2014-01-16 43 views
0

我正在填充一個動態創建的表,其中包含一個<tr>。該表格行中只有一個<td>。問題是,當我加載超過一行的數據時,它會重疊。在CSS​​中的內容正在運行

Style code of <td>

D2.setAttribute('style', 'text-align:right; font-size: 40px; height:90px; vertical-align:middle'); 

enter image description here

+0

包含一個一個手段? – Anup

+3

'line-height' :) –

+0

@Anup我更新了代碼... –

回答

2

嘗試設置:

line-height : 25px /*as desired*/

+0

它工作。 –

+0

簡單快捷。 Cool Era –

+2

她是一個天才...... :-) Wts Up Era – Anup

相關問題