Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/391.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何将css应用于jQuery结果的一部分?_Javascript_Jquery_Css - Fatal编程技术网

Javascript 如何将css应用于jQuery结果的一部分?

Javascript 如何将css应用于jQuery结果的一部分?,javascript,jquery,css,Javascript,Jquery,Css,我只需要我的日字体大小大于realMonth。我该怎么做?例如,我的realMonth是正常大小,但我希望我的一天是粗体和30px!可能吗 $("#display").html(day +"<br/>"+realMonth); }); $(“#display”).html(day+”“+realmount); }); 谢谢:)你可以这样使用 $("#display").html("<span style='font-weight: bold; font-s

我只需要我的日字体大小大于realMonth。我该怎么做?例如,我的realMonth是正常大小,但我希望我的一天是粗体和30px!可能吗

$("#display").html(day +"<br/>"+realMonth);
         });
$(“#display”).html(day+”
“+realmount); });
谢谢:)

你可以这样使用

$("#display").html("<span style='font-weight: bold; font-size: 30px'>" + day +"</span><br/>"+realMonth);});
$(“#display”).html(“+day+”
“+realmount);});
您可以像这样使用

$("#display").html("<span style='font-weight: bold; font-size: 30px'>" + day +"</span><br/>"+realMonth);});
$(“#display”).html(“+day+”
“+realmount);});
您可以像这样使用

$("#display").html("<span style='font-weight: bold; font-size: 30px'>" + day +"</span><br/>"+realMonth);});
$(“#display”).html(“+day+”
“+realmount);});
您可以像这样使用

$("#display").html("<span style='font-weight: bold; font-size: 30px'>" + day +"</span><br/>"+realMonth);});
$(“#display”).html(“+day+”
“+realmount);});