javascript - Fix the headers in a responsive table angularjs -


i new webdevelopment. before posting this, have gone through answers none of them working me. so, asking question. have table added

overflow-y:scroll; height:100px; 

using getting scrollbar table headers not fixed. so, can 1 please me ?

<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 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 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 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 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 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> 

there's jquery plugin here job you: fixed header table


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -