我对我的asp.net网页中的卢比符号有点疑虑,我对CSS有所怀疑:
以下是我的代码:
HTML:
<div id="container"><span>Rs.</span> 5000</div>
Run Code Online (Sandbox Code Playgroud)
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;
}
Run Code Online (Sandbox Code Playgroud)
我想在asp.net网页上获得卢比符号.这里有什么遗漏?
这是我引用的网址:
我是否需要在我的系统中安装任何东西..?
它是否适用于我的网站在世界上使用而没有在用户(他们的)系统中安装任何内容的所有用户?
我可以使用上面的代码附加已经存在的CSS文件(用于我使用卢比符号的同一html文件中的其他div标签)吗?在那种情况下,我需要将hss #container中的css和id中的名称更改为其他内容,因为我已经拥有#container吗?
我没有在CSS中看到#container上面的部分
:即
@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;}
Run Code Online (Sandbox Code Playgroud)
在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;}
}
Run Code Online (Sandbox Code Playgroud)
我可以称之为..
<div id="container" class = "rupee"><span>Rs.</span> 5000</div>
Run Code Online (Sandbox Code Playgroud)
.rupee和#rupee之间究竟有什么区别?
在此先感谢您的帮助!!