私はwebDevelopment.
を初めて使っています。これを投稿する前に、私はすべての答えを見てきましたが、誰も私のために働いていませんでした。だから、私はこの質問をしています。私はスクロールバーを取得していますが、私のテーブルヘッダーは固定されていない、これを使用して応答テーブルのヘッダを修正してください。
overflow-y:scroll;
height:100px;
を追加したテーブルを持っています。だから、これで誰か助けてくれますか?
<div class="col-xs-12 col-md-12 nopadding">
<div class="table-responsive">
<table class="table table-striped table-bordered col-xs-12 col-lg-12">
<thead class="text-center text-info text-capitalize">
<th class="text-center">Sr.No.</th>
<th class="text-center">Document</th>
<th class="text-center">Score</th>
<th class="text-center">Actions</th>
</thead>
<tr ng-repeat="file in processResumeFiles">
<td class="text-center">{{ file.id}}</td>
<td class="view-orphan uploadResumeTableCellOverFlow">
{{ file.attributes.name}}
</td>
<td class="text-center">{{file.totalScore}}</td>
<td class="text-center">
<button class="btn btn-labeled btn-info" title="click to see" ng-disabled="!file.attributes.isUploadedDocument" data-ng-click="somemethod($index)">
<i class="fa fa-eye" aria-hidden="true"></i>
</button>
<button class="btn btn-labeled btn-info" title="click to see" ng-disabled="!file.attributes.isCommitted || !file.attributes.isUploadedDocument" data-ng-click="somemethod(file.attributes.name)">
<i class="fa fa-share" aria-hidden="true"></i>
</button>
<button class="btn btn-labeled btn-info" title="click to see" data-ng-click="somemethod(file.attributes.name)">
<i class="fa fa-trash" aria-hidden="true"></i>
</button>
<button class="btn btn-labeled btn-info" title="click to see" ng-disabled="!file.attributes.isCommitted || !file.attributes.isUploadedDocument" data-ng-click="somemethod(file.attributes.name)">
<i class="fa fa-sign-out" aria-hidden="true"></i>
</button>
<button class="btn btn-labeled btn-info" title="click to see" ng-disabled="!file.attributes.isCommitted || !isjdDeleted || !jdSelected"
data-ng-click="somemethod(file.attributes.name)">
<i class="fa fa-check-square" aria-hidden="true"></i>
</button>
</td>
</tr>
</table>
</div>
</div>
なぜそれらを修正すると思いますか?あなたができることは、table要素の代わりにtbodyに 'overflow-y:scroll;'をセットするだけですが、これは要素が 'block 'として表示されることを必要とします。 – devqon
ng-repeatでは表が100以上のエントリがあるので、私はそのテーブルのスクロールバーを追加したいだけです。このため、私はヘッダーを修正する必要があります。 – ganeshk
overflow-yを使用していません:tbodyのスクロール – ganeshk