HTML文本区域始终出现在新行中

时间:2018-08-27 15:15:54

标签: html css

以下代码是具有两个文本区域字段的语句。但是它不会显示为一行。组件总是写在新行中。

<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>

请帮助 预先感谢

1 个答案:

答案 0 :(得分:2)

DISPLAY: block;更改为DISPLAY: inline;(2次)。块元素将始终换行...