검색 및 끈적한 표 머리글 정렬 테이블이 있습니다. 내가 직면 한 첫 번째 문제는 헤더를 테이블에 붙일 수 없다는 것입니다. 스크롤하면 창이 고정됩니다. 두 번째로 테이블 너비와 높이의 크기를 조정할 수 없습니다. div
태그 안에 보관하면 끈적한 헤더가 작동하지 않습니다.끈적 헤더가 있고 정렬 및 검색하는 테이블 크기를 수정하는 방법은 무엇입니까?
달성 방법을 알려주세요.
<script id="js">$(function(){
$("table").tablesorter({
widthFixed : true,
showProcessing: true,
headerTemplate : '{content} {icon}',
// Add icon for jui theme; new in v2.7!
widgets: [ 'uitheme', 'zebra', 'stickyHeaders', 'filter' ],
widgetOptions: {
// extra css class name applied to the sticky header row (tr) - changed in v2.11
stickyHeaders : '',
// adding zebra striping, using content and default styles - the ui css removes the background from default
// even and odd class names included for this demo to allow switching themes
zebra : ["ui-widget-content even", "ui-state-default odd"],
// use uitheme widget to apply defauly jquery ui (jui) class names
// see the uitheme demo for more details on how to change the class names
uitheme : 'jui'
}
});
});</script>
이
는 CSS를위한 JS 파일 내가 jsfiddle에서했던 한 것과 동일 할<script src="js/jquery.tablesorter.widgets.js"></script>
stickyHeaders 위젯은 현재 상위 요소에 "고정"할 수 없습니다. 브라우저 창에만 붙어 있습니다. 이미 공개 된 [미해결 문제] (https://github.com/Mottie/tablesorter/issues/295)가 있습니다. 아직 익숙하지 않았습니다. – Mottie
답변을위한 Thnaks ... 솔루션이 나오면 공유하십시오 .. – SUDARSHAN