2014-07-25 3 views
0

아약스에서 데이터를 가져 오는 데 datatable을 가지고 있는데 너비를 50 %로 만드는 옵션을 찾지 못했습니다.이 방법이 있습니까? 내가 뭔가를 누락하지 않는 한50 % 너비가있는 JQuery Datatable

    <div id="masonry" class="yesPrint"> 
         <table class="table table-nonfluid table-condensed table-striped table-bordered table-hover" id="sample_2"> 
          <thead> 
          <tr> 
           <th class="centralize" colspan="2">1 - Ramais</th> 
          </tr> 
          <tr align="left"> 
           <th>Número</th> 
           <th>Nome</th> 
          </tr> 
          </thead> 
          <tbody> 
          </tbody> 
         </table> 
         </div> 

답변

0

은 바이올린의 너비 : 테이블에 직접 설정할 수없는 경우 컨테이너에 50 %. 좋아요 :

#masonry { width: 50%; }