输入文本框溢出,不会自动缩放
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200601073715997.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3h6ODQyOTEzNzg3,size_16,color_FFFFFF,t_70)
问题代码:
<form action="SeverletArticle?op=updateArticle" method="post">
<table border="" cellspacing="" cellpadding=""
class="table table-striped table-hover ">
<tr>
<th>文章编号</th>
<th>文章标题</th>
<th>文章内容</th>
<th>发表日期</th>
<th>作者编号</th>
</tr>
<tr class="gradeD">
<td><input type="text" id="id" name="id" readonly="readonly" style="background-color: #B9BBBE;"/></td>
<td><input type="text" id="title" name="title" /></td>
<td><input type="text" id="articleContent"
name="articleContent" /></td>
<td class="center"><input type="text" id="date" name="date" /></td>
<td class="center"><input type="text" id="authorId"
name="authorId" /></td>
</tr>
</table>
<input type="submit" class="btn btn-secondary" value="修改"></input>
</form>
解决问题关键代码:在input标签里面增加class="form-control"样式
<input type="text" id="title" name="title" class="form-control"/></td>
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200601073725843.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3h6ODQyOTEzNzg3,size_16,color_FFFFFF,t_70)