[英]currency number format styles in webpage
I want to display my fare details as below.我想显示我的票价详情如下。
Faredetails
-------------------
Price : 1000
VAT : 20(+)
GST : 15(+)
Discount : 100(-)
---------------
Total : 1065
html code: html代码:
<div class="div-active faredet">
<h3 style="text-align:center;border-bottom: 1px solid #ccc;">Fare Details</h3>
<table>
<tr>
<td>Fare </td>
<td>₹1,000.00</td>
</tr>
<tr>
<td>Discuount </td>
<td>₹10.00<span style="color:red;"> (-)</span></td>
</tr>
<tr style="border-bottom: 1px solid #ccc;"></tr>
<tr>
<td>Net Payable </td>
<td>₹900.00</td>
</tr>
</table>
</div>
All these values will come dynamically.所有这些值都会动态出现。 so can any one let me how to style these values.
任何人都可以让我如何设置这些值的样式。 Thanks in advance.
提前致谢。
We can do with accounting.js library.我们可以使用accounting.js 库。
<script src="path/to/accounting.js"></script>
<script type="text/javascript">
// Library ready to use:
accounting.formatMoney(5318008);
</script>
refer: http://openexchangerates.github.io/accounting.js参考: http : //openexchangerates.github.io/accounting.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.