I am using this code to display rupee symbol.
₹ ; // semicolon is just after 9.
for example
-
You can do it with Intl.NumberFormat.
var number = 400000;
console.log(new Intl.NumberFormat('en-IN', {
style: 'currency',
currency: 'INR'
}).format(number));
Or using Icons8 for Indian Rupee (INR).
CDN
<!-- Image size: 24px -->
<img src="https://img.icons8.com/material/24/000000/rupee.png">
Base64
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADbSURBVEhL3dUxCwFxGMfxK0UGg4EsNpPZaDZaDcpoMXo13oDZC2CSGGSyMpgsJlJK+P6uri6d+rv/Y/Gtz3BX93/quZPgb3um5FzSwy5SV0IHe+igFTIwT4N20JC+bvyiHjRgFl6lLNrpt5xLetiFSdGKFuGVcfGXPNANq8qIf6YbZJG6aKdJdHgFXr0fesESWksO3ulHdIcOH8NrHZ9q4woNmaIA85o4QUPW8N59UnUcoCH6RGswr4otNOSIBswrYg4NOaMF8/KYQENu6MI8/dGMoCEPDPG3BcELTYVtU4m89QEAAAAASUVORK5CYII=">
讨论(0)
-
Some of the browsers/OS don't support rupee symbol ₹
yet.
Fixes:
You may use a CSS font which supports it to use the symbol.
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<i class="fa fa-inr"></i>
Use similar symbol: <del>र</del>
=> र
Try ₹
=> ₹
Use an image(bad solution but works): <img src="http://i.stack.imgur.com/nGbfO.png" width="8" height="10">
=>
讨论(0)
- 热议问题