Php 更改声明中的字体大小
我正在使用wordpress,我正在调用一个h3类。我想要一个较小的字体大小的条件,但我想使用相同的类,因为我使用谷歌字体,它可以识别类名。。。有没有办法在类声明中更改字体大小?谢谢Php 更改声明中的字体大小,php,css,wordpress,Php,Css,Wordpress,我正在使用wordpress,我正在调用一个h3类。我想要一个较小的字体大小的条件,但我想使用相同的类,因为我使用谷歌字体,它可以识别类名。。。有没有办法在类声明中更改字体大小?谢谢 $title = get_the_title(get_the_ID()); if(strlen($title) > 51){ //Want smaller font size for this one! the_title('<h3 class="entry-title">', '</h3&
$title = get_the_title(get_the_ID());
if(strlen($title) > 51){
//Want smaller font size for this one!
the_title('<h3 class="entry-title">', '</h3><br/>' );
}else{
the_title('<h3 class="entry-title">', '</h3><br/>' );
}
}?>
$title=get_the_title(get_the_ID());
如果(斯特伦($title)>51){
//希望这一款的字体更小!
标题(“,
”);
}否则{
标题(“,
”);
}
}?>
当您想要相同的类时,请将style属性与in-h3标记为self,因为内联样式已经超过了外部样式
$title = get_the_title(get_the_ID());
if(strlen($title) > 51){
//Want smaller font size for this one!
the_title('<h3 class="entry-title" style="font- size:smaller;">', '</h3><br/>' );
}else{
the_title('<h3 class="entry-title">', '</h3><br/>' );
}
}?>
$title=get_the_title(get_the_ID());
如果(斯特伦($title)>51){
//希望这一款的字体更小!
标题(“,
”);
}否则{
标题(“,
”);
}
}?>
?