php tablo stili bağlantılar

2 Cevap php

Ben html sayfasından bir form göndererek zaman içeride bir php sayfasını görüntüleyen bir iframe var.

Bazı php kod ile bağlantıları stil mümkün mü? eğer öyleyse, nasıl?

Teşekkürler

2 Cevap

Sadece PHP'nin echo to add some internal veya inline CSS stillerini kullanın.

("Yorumlu metin" sözdizimi kullanarak) bir örnek:

echo <<<END
<style type="text/css">
a:link { color: blue; text-decoration: none; }
a:visited { color: blue; text-decoration: none; }
a:hover { color: red; text-decoration: underline; }
a:active { color: red; text-decoration: underline; }
</style>
END;

Veya bu tür bir şey.

Sen ancak php dosyanızın içine ayrıştırmak, php değil, bunun için css kullanmak isterim.

<?php

// code here....

?>
<style type="text/css">
iframe a {
  color:red;
}
</style>
<?php

// more code here....

?>