我正在填充一個動態創建的表,其中包含一個<tr>
。該表格行中只有一個<td>
。問題是,當我加載超過一行的數據時,它會重疊。在CSS中的內容正在運行
Style code of <td>
D2.setAttribute('style', 'text-align:right; font-size: 40px; height:90px; vertical-align:middle');
我正在填充一個動態創建的表,其中包含一個<tr>
。該表格行中只有一個<td>
。問題是,當我加載超過一行的數據時,它會重疊。在CSS中的內容正在運行
Style code of <td>
D2.setAttribute('style', 'text-align:right; font-size: 40px; height:90px; vertical-align:middle');
嘗試設置:
line-height : 25px /*as desired*/
包含一個一個手段? – Anup
'line-height' :) –
@Anup我更新了代碼... –