Fórum Como faço para o script abaixo mudar a cor da fonte quando o texto for igual a VENDA #619609
28/02/2023
0
}
.style6 {font-size: 12px}
.style7 {
font-size: 30px;
font-weight: bold;
}
<td><span class="style6">
<?=$cliente->status?>
</span></td>
.style6 {font-size: 12px}
.style7 {
font-size: 30px;
font-weight: bold;
}
<td><span class="style6">
<?=$cliente->status?>
</span></td>
Cairo Oliveira
Curtir tópico
+ 0
Responder
Posts
28/02/2023
Frank Hosaka
<style>
.style6 {font-size: 12px}
.style7 {font-size: 30px;font-weight: bold;}
</style>
<?php
function teste($texto){
if($texto=="venda"){$style="style7";} else {$style="style6";}
echo "<table><tr><td class=$style>$texto</table>" ;}
echo teste("venda");
echo teste("frank");
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)