开发者

How to check if element has text-shadow

开发者 https://www.devze.com 2023-03-27 11:02 出处:网络
How d开发者_高级运维o I check if a element has text-shadow set in the CSS ? With jQueryUse the .css(), Luke.

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

精彩评论

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