HTML 中的卢比符号

新手上路,请多包涵

当我在我的 asp.net 网页中使用卢比符号时,我对 CSS 几乎没有怀疑:

下面是我的代码:

HTML:

 <div id="container"><span>Rs.</span> 5000</div>

CSS:

 @font-face{
    font-family:‘WebRupee’;
    src:url(‘WebRupee.V2.0.eot’);
    src:local(‘WebRupee’), url(‘WebRupee.V2.0.ttf’)format(‘truetype’), url(‘WebRupee.V2.0.woff’) format(‘woff’), url(‘WebRupee.V2.0.svg’) format(‘svg’);
    font-weight:normal;
    font-style:normal;
}
.WebRupee{
    font-family:’WebRupee’;
}
html > body.WebRupee {
    margin-right:2px;
}
html > body.WebRupee {
    *margin-right:0;
}
#container {
    width:500px;
    margin:50pxauto;
}

我想在 asp.net 网页中获取卢比符号。这里有什么遗漏吗?

这是我引用的网址:

点击这里

我需要在我的系统中安装任何东西吗?

它是否适用于我的网站在全世界使用的所有用户,而无需在用户(他们的)系统中安装任何东西?

我可以用上面的代码附加已经存在的 CSS 文件(它用于我使用卢比符号的同一 html 文件中的其他 div 标签)吗?在那种情况下,我是否需要将 css 中的名称和 html #container 中的 id 更改为其他内容,因为我已经在那里有了#container?

我没有在 CSS 中看到上面的 #container 部分

:IE

 @font-face{font-family:‘WebRupee’;src:url(‘WebRupee.V2.0.eot’);src:local(‘WebRupee’), url(‘WebRupee.V2.0.ttf’)format(‘truetype’),url(‘WebRupee.V2.0.woff’)format(‘woff’),
url(‘WebRupee.V2.0.svg’)format(‘svg’);font-weight:normal;font-style:normal;}
.WebRupee{font-family:’WebRupee’;}
html>body.WebRupee{margin-right:2px;}
html>body.WebRupee{*margin-right:0;}

没有为 html 中的 DIV 重新命名 .. 是那样还是我需要将它放在一个类中

应该是这样的..

 .rupee
{

@font-face{font-family:‘WebRupee’;src:url(‘WebRupee.V2.0.eot’);src:local(‘WebRupee’), url(‘WebRupee.V2.0.ttf’)format(‘truetype’),url(‘WebRupee.V2.0.woff’)format(‘woff’),
url(‘WebRupee.V2.0.svg’)format(‘svg’);font-weight:normal;font-style:normal;}
.WebRupee{font-family:’WebRupee’;}
html>body.WebRupee{margin-right:2px;}
html>body.WebRupee{*margin-right:0;}
}

我可以称它为..

 <div id="container" class = "rupee"><span>Rs.</span> 5000</div>

.rupee 和#rupee 之间到底有什么区别?

提前感谢您的帮助!

原文由 Jaison 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 250
1 个回答

新的卢比符号可以像这样直接在 html 中呈现 ₹。在源代码中 &#8377;

原文由 srb 发布,翻译遵循 CC BY-SA 3.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
logo
Stack Overflow 翻译
子站问答
访问
宣传栏