CSS3: Is it possible to have thousands separator in numbers? [duplicate]

拈花ヽ惹草 提交于 2019-12-13 14:55:41

问题


Possible Duplicate:
Formatting numbers (decimal places, thousands separators, etc) with CSS

I'm working on a web application for statistics (LAMP platform), and I was wondering if CSS3 could take care of thousands separation in numbers.

For example, I would like that a writing just like

Items sold: 101715

could appear like

Items sold: 101 715

So with a space as a thousands separator.

I know I can have it with PHP, and also that for something like CSS3 this has to do with semantic evaluation of related content, but I started wondering if this could be possible.

Anyone?


回答1:


No CSS cant format numbers, if you would like to do something like that in the client, you would have to look into javascript.



来源:https://stackoverflow.com/questions/9173227/css3-is-it-possible-to-have-thousands-separator-in-numbers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!