CKEDITOR 4.x-如何在TD元素中保持高度和宽度
我有以下代码:CKEDITOR 4.x-如何在TD元素中保持高度和宽度,ckeditor,Ckeditor,我有以下代码: <table align="center" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="1" height="20" width="658">A</td> </tr> <tr> <td colspan="1" width="658">B</td> </tr>
<table align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="1" height="20" width="658">A</td>
</tr>
<tr>
<td colspan="1" width="658">B</td>
</tr>
</table>
A.
B
CKEDITOR将其转换为
<table align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="1">A</td>
</tr>
<tr>
<td colspan="1">B</td>
</tr>
</tbody>
</table>
A.
B
我如何保持高度和宽度?
某些邮件程序不喜欢TD元素中的style属性。在ckeditor中,右键单击要自定义的单元格。选择“单元”,然后选择“单元属性”。您可以在那里设置所需的单元格宽度和高度。
我已经使用了config属性是的,当然,但我不想要“style”属性,我需要保留height=“xx”和width=“xx”属性只是好奇,为什么不使用style而不是direct属性呢?请您再解释一下——具体地说,一旦允许使用td th[width]属性(或者{width}样式属性不允许,CKEditor UI“单元格属性”对话框如何知道自动开始使用宽度属性而不是样式属性?