在HTML中需要印度卢比符号的CSS代码 [英] Need css code for indian rupee symbol in HTML

查看:99
本文介绍了在HTML中需要印度卢比符号的CSS代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个HTML格式的印度卢比符号的CSS代码。



我知道有一个由webrupee.com提供的CSS或JS代码。但这只适用于机器有互联网连接并且我要在INTRANET上配置我的网站,所以它可能没有互联网连接。



第二个替代我发现是使用代码₹但它只适用于机器支持Unicode 6.0(不确定如何添加unicode支持)。



让我知道是否有一些css / js代码或我可以让第二个选项工作。



先谢谢。

I need a css code for Indian rupee symbol in HTML.

I know there is a CSS or JS code supplied by webrupee.com. But this works only if machine has internet connection and I am going to configure my site on INTRANET, So it may not have internet connection all the time.

Second alternative I found is to use code "& #x20B9;" But it only works if machine supports Unicode 6.0 (Not sure how to add unicode support).

Let me know if there is some css/js code or I can make second option work.

Thanks in Advance.

推荐答案

尝试使用Javascript:



Try using Javascript:

 <head>
<script src="http://cdn.webrupee.com/js" type="text/javascript"></script>
</head>







<span class="WebRupee">Rs.</span>





应该有效。



It should work.


嗨朋友,



我没有一个僵硬的解决方案,但我有一个想法。我们可以从这个链接获得印度卢比的png图像。



然后使用这样的简单CSS:

Hi Friend,

I don't have a stiff solution but I have an idea. We can get a png image of the Indian Rupee from This link.

Then use a simple CSS like this :
.rupee {
	background: transparent url("./images/rupee.png") no-repeat;
	background-size: 10px 14px;
	background-position: 0 0;
	display: block;
	min-width: 10px;
	height: 14px;
	line-height: 14px;
        padding-left: 12px;
	float: left;
	clear: both;
}





HTML中的用法:



Usage in HTML :

<div>
  <p class="rupee">100</p>
</div>





At这一刻,它完美运作......你实际上必须下载并存储我在上面的链接中提供的卢比的png图像。



我希望这个答案解决了你的问题。如果它解决了你的问题,请对它进行评分并接受解决方案:)



有问候

Tushar Srivastava



At the moment, It works perfectly... You actually have to download and store the png image of rupee that I provided in the link above.

I hope that this answer solved your problem. Please do rate it and accept is as solved if it solved your problem :)

With Regards
Tushar Srivastava


嗨sam7one,



请通过以下链接

http://webrupee.com/ [ ^ ]



如果您不想要应用程序的实时引用,请将以下代码添加到JS文件中,并将链接引用添加到所需页面中。



http://cdn.webrupee.com/js



检查您是否还需要字体,然后从下面的链接获取字体



http://cdn.webrupee.com/font [ ^ ]



谢谢,

Vamsi
Hi sam7one,

Please go through the following link
http://webrupee.com/[^]

If you don't want a live reference for the application, then add the below code into a JS file, and get the link reference into the required page.

http://cdn.webrupee.com/js

Check if you might need the font also, then get the font from below link

http://cdn.webrupee.com/font[^]

Thank you,
Vamsi


这篇关于在HTML中需要印度卢比符号的CSS代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆