2015-04-06 58 views
0

我打电话给填充我的表的json脚本,它工作正常。我只是试图使它只与水平分隔符,并根据this一个应该只需要添加class="table"到我的<table>但它没有任何效果。我必须通过我的jQuery代码来做到这一点吗?bootstrap表只有水平分隔符不适用

jQuery的

$('#table-javascript').bootstrapTable({ 
    method: 'get', 
    url: 'bootstrap_database.php', 
    height: 600, 
    cache: false, 
    striped: true, 
    pagination: true, 
    search: true, 
    pageSize: 20, 
    pageList: [20, 40, 60, 100, 200], 
    minimumCountColumns: 2, 
    clickToSelect: true, 
    columns: [{ 
     field: 'title', 
     title: 'Title', 
     align: 'center', 
     sortable: true 
    },{ 
     field: 'audio', 
     title: 'Audio', 
     align: 'center', 
     sortable: true 
    },{ 
     field: 'sheet1', 
     title: 'Sheet 1', 
     align: 'center', 
     sortable: true 
    },{ 
     field: 'sheet2', 
     title: 'Sheet 2', 
     align: 'center', 
     sortable: true 
    },{ 
     field: 'sheet3', 
     title: 'Sheet 3', 
     align: 'center', 
     sortable: true 
    },{ 
     field: 'lyrics', 
     title: 'Lyrics', 
     align: 'center', 
     sortable: true 
    },{ 
     field: 'sheet1notes', 
     title: 'Notes 1', 
     align: 'center', 
     sortable: true 
    },{ 
     field: 'sheet2notes', 
     title: 'Notes 2', 
     align: 'center', 
     sortable: true 
    },{ 
     field: 'sheet3notes', 
     title: 'Notes 3', 
     align: 'center', 
     sortable: true 
    }] 
}); 

HTML

<div class="container"> 
    <section> 
     <div class="row"> 
      <h1>Music</h1> 
      <table id="table-javascript" class="table"></table> 
     </div> 
    </section> 
</div> 

回答