开发者

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.

How to check if element has text-shadow


Try this

if(!$('elementSelector').css('text-shadow')){
   //No text-shadow.
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜