<table border="1" cellspacing="0" cellpadding="0" width="650"> <tr height="30">
<td colspan="2" style="border-top:none">
<table class="table_style">
<tr>
<td width="100%">
<span >
<b>备注(包括手术名称):</b></span><span id="dateinhospital" style="font-size:12pt" edxtemplate="paracont_time" edxpath="emr/s10" />
</td>
</tr>
</table>
</td>
</tr>
<tr height="30">
<td colspan="2" style="border-top:none">
<table class="table_style">
<tr>
<td width="100%">
<span >
</span><span id="dateinhospital" style="font-size:12pt" edxtemplate="paracont_time" edxpath="emr/s11" />
</td>
</tr>
</table>
</td>
</tr>
</table>
这是我的一个表格2行,有没有办法第一行内容写满了之后自动换行到第二行?就像第一行写满之后按TAB键光标跳到第二行一样的效果。
<td colspan="2" style="border-top:none">
<table class="table_style">
<tr>
<td width="100%">
<span >
<b>备注(包括手术名称):</b></span><span id="dateinhospital" style="font-size:12pt" edxtemplate="paracont_time" edxpath="emr/s10" />
</td>
</tr>
</table>
</td>
</tr>
<tr height="30">
<td colspan="2" style="border-top:none">
<table class="table_style">
<tr>
<td width="100%">
<span >
</span><span id="dateinhospital" style="font-size:12pt" edxtemplate="paracont_time" edxpath="emr/s11" />
</td>
</tr>
</table>
</td>
</tr>
</table>
这是我的一个表格2行,有没有办法第一行内容写满了之后自动换行到第二行?就像第一行写满之后按TAB键光标跳到第二行一样的效果。
比如超过20个字符串就截取20个为一半,然后前面的20个拼上</td></tr><tr><td>再拼上后面的字符串这样。
要是表格宽度永远固定,这么做还能凑合。
要是表格宽度也会变化那怎么办?你要自己动态处理把那一个个文字给调整到合适的表格行中去!如果确实是想做类似给每行文字加上边框的效果,试试采用css边框,下划线,背景图来解决吧。