Javascript 如何将文本与datatable右对齐 日期 MBSL帐号 参考号 金额(斯里兰卡卢比) 理由 第三方Acc编号 转移状态 目标银行 转帐
使用jQuery,它可以通过Javascript 如何将文本与datatable右对齐 日期 MBSL帐号 参考号 金额(斯里兰卡卢比) 理由 第三方Acc编号 转移状态 目标银行 转帐,javascript,jquery,Javascript,Jquery,使用jQuery,它可以通过css方法完成 <table id="table-DataView-Ceft-History" class="table table-bordered v-table"> <thead> <tr> <th style="width:auto;">Date</th> <th style="width:auto;">MBSL Account No</th>
css
方法完成
<table id="table-DataView-Ceft-History" class="table table-bordered v-table">
<thead>
<tr>
<th style="width:auto;">Date</th>
<th style="width:auto;">MBSL Account No</th>
<th style="width:auto;">Reference No</th>
<th style="width:auto;">Amount(LKR)</th>
<th style="width:auto;">Reason</th>
<th style="width:auto;">Third Party Acc No</th>
<th style="width:auto;">Transfer status</th>
<th style="width:auto;">Target Bank</th>
<th style="width:auto;">Transfer By</th>
</tr>
</thead>
</table>
或,我们可以使用文本对齐:右用于th
标记中文本右对齐的code>css属性
th{
文本对齐:右对齐;
}
日期
MBSL帐号
参考号
金额(斯里兰卡卢比)
理由
第三方Acc编号
转移状态
目标银行
转帐
使用jQuery,它可以通过css
方法完成
<table id="table-DataView-Ceft-History" class="table table-bordered v-table">
<thead>
<tr>
<th style="width:auto;">Date</th>
<th style="width:auto;">MBSL Account No</th>
<th style="width:auto;">Reference No</th>
<th style="width:auto;">Amount(LKR)</th>
<th style="width:auto;">Reason</th>
<th style="width:auto;">Third Party Acc No</th>
<th style="width:auto;">Transfer status</th>
<th style="width:auto;">Target Bank</th>
<th style="width:auto;">Transfer By</th>
</tr>
</thead>
</table>
或,我们可以使用文本对齐:右用于th
标记中文本右对齐的code>css属性
th{
文本对齐:右对齐;
}
日期
MBSL帐号
参考号
金额(斯里兰卡卢比)
理由
第三方Acc编号
转移状态
目标银行
转帐