목차
접기
728x90
반응형
참고 사이트
https://codepen.io/rchavda/pen/zbbGgm
$('#table_test').DataTable({
bAutoWidth: false, // 너비 자동맞춤을 false로 설정해주어야 지정한 너비가 제대로 출력된다.
columnDefs: [
{ width: "10%", targets : 0 },
{ width: "10%", targets: 1 },
{ width: "20%", targets: 2 },
{ width: "10%", targets: 3 },
{ width: "8%", targets: 4 },
{ width: "10%", targets: 5 },
{ width: "45%", targets: 6 }
],
});
참고 사이트 참고해서 드디어.ㅠㅠㅠㅠㅠㅠ너비 사용법을 알아냈단 ㅜㅜㅜㅜㅜㅜㅜㅜㅜ
잊지말고 작성한 내용 참고해서 개발하자!!
728x90
반응형
LIST
'javascript' 카테고리의 다른 글
[ jQuery ] How to prevent the modal from closing when using the data picker while using the bootstrap model. (0) | 2022.01.12 |
---|---|
[ jquery ] datepicker 라이브러리로 년, 월말 출력되도록 하는 방법 (0) | 2021.09.08 |
[ jQuery ] 같은 부모 아래 다른 자식 요소 찾기 / 형제자매 요소 select .siblings() / (0) | 2021.09.01 |
[ jquery ] localStorage 사용법 (2) | 2021.07.23 |
jquery로 html 파일 로드하는 방법 (0) | 2021.07.22 |