element?-一个人的身影的回答
element?
I am Using a Regional language unicode font-face in my site but the numbers are not looking good.
So I want to apply new font-style or css to numbers only..
You can use the regex replace and detect the numbers then add the class
following code:
$('p').html(function(i,c) { return c.replace(/\d+/g, function(v){ return "" + v + ""; }); });
.numbers { color:red; font-size:30px; }
View 11 new out of 11 message(s) in your inbox