如何使用Naira货币符号为钱格式html

时间:2016-04-01 12:43:56

标签: css html5 ionic-framework

我试图将Total兑换的价值与" Total Redemption"这两个词放在同一行。就像Total Accrued Points看起来一样,我使用的是一个图像作为我的货币符号,这个显示的代码是

<div class="item item-body " >  
<div class="container">
 <div class="right">
 Total Accrued Points :  {{reportData.accruedpoints}}<br/>
 <p>Total Redemption:<img src='img/naira.gif' alt="Naira" height='20' width='20' align='bottom'> {{reportData.redeemableamt | currency : ""}}
</p>
</div>
<a  <a href="#/app/transactionsBreakDown/{{reportData.submerchantId}}" class="button button-full button-assertive ink" >View {{reportData.submerchantId}} Details</a>

enter image description here

4 个答案:

答案 0 :(得分:2)

始终将Unicode用于文本和货币

&#8358; 12,000

http://www.fileformat.info/info/unicode/char/20a6/index.htm

答案 1 :(得分:0)

display: inline添加到图片代码的CSS中,以便在段落中内嵌显示:

<img src='img/naira.gif' alt="Naira" height='20'
width='20' align='bottom' style="display:inline;">

答案 2 :(得分:0)

使用span元素

<span><span>&#8358;</span> 15,000</span>

答案 3 :(得分:0)

只要做到这一点,你就很高兴

def on_message(self, message):
    if (message.author.bot):
        return #if this is true: then it is by a bot.
相关问题