Jquery 如何将响应datatable select复选框移动到其他列
我正在尝试用选择器制作一个响应性强的表格,我遇到了一些美学问题。看起来像这样 我希望它像这样: 并让绿色加号显示在Wilson前面的姓氏中 我想这是一个简单的解决办法,但我似乎找不到它 以下是html:Jquery 如何将响应datatable select复选框移动到其他列,jquery,twitter-bootstrap-3,responsive-design,datatables,Jquery,Twitter Bootstrap 3,Responsive Design,Datatables,我正在尝试用选择器制作一个响应性强的表格,我遇到了一些美学问题。看起来像这样 我希望它像这样: 并让绿色加号显示在Wilson前面的姓氏中 我想这是一个简单的解决办法,但我似乎找不到它 以下是html: <table id="LastWeek" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%"> <thead> &l
<table id="LastWeek" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
<thead>
<tr>
<th><img src="http://simpleicon.com/wp-content/uploads/Shopping-Cart-9.png" alt="shopping cart" style="width:20px;height:15px"></th>
<th>Last Name</th>
<th>First Name</th>
</tr>
</thead>
<tbody>
{% for p in qbPastWeek %}
<tr>
<td></td>
<td><a href="{{p.player.profile_url}}">{{p.player.last_name}}</td>
<td>{{p.player.first_name}}</td>
</tr>
{% endfor %}
</tbody>
</table>
$('#LastWeek').DataTable({
columnDefs: [ {
orderable: false,
className: 'select-checkbox',
targets: 0
} ],
select: {
style: 'multi',
selector: 'td:first-child'
},
order: [[ 8, 'desc' ]]
});