以下代码是具有两个文本区域字段的语句。但是它不会显示为一行。组件总是写在新行中。
<TD width="100%" class=DataLeftAligned id=td_0_0 colSpan=8 name="td_0_0">SIGNED COMMERCIAL INVOICE IN <TEXTAREA name=text1_0_0 disabled id=text1_0_0 style="OVERFLOW: auto; WORD-WRAP: break-word; OVERFLOW-Y: auto; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; DISPLAY: block; PADDING-RIGHT: 0px" onkeydown=limitTextArea(this,100,65); onkeyup=limitTextArea(this,100,65); rows=1 cols=3></TEXTAREA>_TI_3 COPIES INDICATING THIS CREDIT NUMBER.AND <TEXTAREA name=text2_0_0 disabled id=text2_0_0 style="OVERFLOW: auto; WORD-WRAP: break-word; OVERFLOW-Y: auto; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; DISPLAY: block; PADDING-RIGHT: 0px" onkeydown=limitTextArea(this,100,65); onkeyup=limitTextArea(this,100,65); rows=3 cols=10></TEXTAREA>_TA_65_5 </TD>
请帮助 预先感谢
答案 0 :(得分:2)
将DISPLAY: block;
更改为DISPLAY: inline;
(2次)。块元素将始终换行...