How to check if element has text-shadow
How d开发者_高级运维o I check if a element has text-shadow set in the CSS ?
With jQuery
Use the .css()
, Luke.
var ts = $('some element selector here').css('text-shadow');
console.log(ts);
Don't believe me? See for yourself.
Try this
if(!$('elementSelector').css('text-shadow')){
//No text-shadow.
}
精彩评论