在表格文本框元素周围包装文本

时间:2019-05-17 19:44:00

标签: html

我想用文本框环绕文本,在文本框顶部

enter image description here

<!-- ==================== Travel Details Field -->
<tr class="Field CommentRow">
<td class="LabelForm">Travel Details</td>

<td class="Value">
   <%= Html.TextArea("TravelDetails", H(genericModel.Comment), 12, 60, new { @class = "BodyWatermark", style = "width:360px" })%>
       <span class="More")>We are traveling to Naples on the 15th or May, followed by London starting on May 23rd</span>
</td>

</tr>

1 个答案:

答案 0 :(得分:0)

像这样吗?

<!-- ==================== Travel Details Field -->
<tr class="Field CommentRow">
<td class="LabelForm">Travel Details</td>

<form>
  <input type="text" name="boxy" style="width: 300px;height: 200px;"><br>
   
</form>

<td class="Value">
   <Html.TextArea("TravelDetails", H(genericModel.Comment), 12, 60, new { @class = "BodyWatermark", style = "width:360px" })%>
       <span class="More")>We are traveling to Naples on the 15th or May, followed by London starting on May 23rd</span>
</td>

</tr>