![enter image description here](https://i.stack.imgur.com/YasoT.png)
Я новичок в front-end-development
.Теперь, у меня есть следующая таблица,
<div className="table-responsive">
<table className="table table-hover" id="job-table">
<thead>
<tr className="text-center">
<th scope="col">Sr.No.</th>
<th scope="col">Company Name</th>
<th scope="col">Technology</th>
<th scope="col">Total Resumes</th>
<th scope="col">Job Title</th>
<th scope="col">Total Score</th>
<th scope="col">Average Score</th>
</tr>
</thead>
<tbody className="text-center">
{this.props.list && this.props.list.content && this.props.list.content.length > 0 && this.props.list.content.map((item, key) => {
return (
<tr key={key}>
<td className="font-weight-bold">1</td>
<td className="font-weight-bold">ABCDED</td>
<td>Software Developer</td>
<td className="font-weight-bold">17</td>
<td>5 years experience</td>
<td className="font-weight-bold">30</td>
<td className="font-weight-bold">30</td>
</tr>
)
})}
</tbody>
</table>
</div>
Теперь, в этом я использовал table-responsive class
.
Теперь я попытался сделать эту таблицу прокручиваемой с помощью
tbody { height: 400px; overflow-y: scroll }
Но это не работает.
Еще одна вещь, касающаяся содержимого td
, если оно велико, другие строки будут затронуты.Итак, как я могу избежать этого сценария?
Спасибо за помощь.
[! [Введите описание изображения здесь] [3]] [3]