Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何将文本与datatable右对齐 日期 MBSL帐号 参考号 金额(斯里兰卡卢比) 理由 第三方Acc编号 转移状态 目标银行 转帐_Javascript_Jquery - Fatal编程技术网

Javascript 如何将文本与datatable右对齐 日期 MBSL帐号 参考号 金额(斯里兰卡卢比) 理由 第三方Acc编号 转移状态 目标银行 转帐

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>

使用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编号
转移状态
目标银行
转帐
使用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编号
转移状态
目标银行
转帐