Text characteristics identifier
I need an app where开发者_开发技巧 I can just copy a block of text and have it identify the typeface, color, size, etc. Is there such a thing?
The JQuery css()
function would be great for this. You would just need to build a function that checks for the CSS properties you are looking for and return them.
$(document).ready(function(){
var test = $('p').css('font-family');
alert(test);
});
Demo here: http://jsbin.com/ecedolink text
Here is documentation on the JQuery CSS function: http://api.jquery.com/css/
精彩评论