问题
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