相关疑难解决方法(0)

jQuery检查字体粗细是正常还是粗体

我正在使用以下代码设置font-weight属性:

$(this).css({ 'font-weight': 'normal' });
Run Code Online (Sandbox Code Playgroud)

现在我想检查一个元素是否具有粗体或正常的font-weight propety,我该怎么做?

jquery fonts properties

6
推荐指数
1
解决办法
3945
查看次数

标签 统计

fonts ×1

jquery ×1

properties ×1