HTML and PHP Query


HTML and PHP Query

<tr>
<td class="mHeads" rowspan="4" > GENERAL </td>
<th class="subHeads"> 2G Network </th>
<td class = "currentSel"><?php echo $row["2GNetwork"];
</td>
</tr>


.currentSel {
width:230px;
border:1px solid black;
max-width:230px;
height: 35px;
}

在上面的代码中,echo 语句溢出数据,而不是增加行的长度。谁能帮我如何在不使用溢出属性的情况下修复它?

.currentSel {
  width:230px;
  border:1px solid black;
  max-width:230px;
  height: 35px;
      overflow-y: auto
}

您已经使用了宽度和高度,因此无法获得额外的空间,您唯一能做的就是添加overflow-y: auto或删除宽度或高度。