如何通过CSS内容添加美元符号 [英] how to add a dollar sign through css content
本文介绍了如何通过CSS内容添加美元符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过CSS内容显示 $符号:我尝试了各种不同的代码。
How can I display the "$" sign through CSS Content:" " I've tried all kinds of different codes. Putting just
div.example {Content:"$1000";}
在网站上显示为 00之类。
displays on the site like "00".
在使用Java脚本之前尝试执行此操作。 / p>
Trying to do this before resorting to Javascript.
推荐答案
.dollar:before {
content: '$';
}
这篇关于如何通过CSS内容添加美元符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文