PHP Echo文字颜色 [英] PHP Echo text Color
本文介绍了PHP Echo文字颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改回显消息的颜色并将消息居中于我编写的PHP中.我所在的行是:
How do I change the color of an echo message and center the message in the PHP I've written. The line I have is:
echo 'Request has been sent. Please wait for my reply!';
推荐答案
如果将其输出到浏览器,如何写一些HTML标记和CSS?
How about writing out some HTML tags and some CSS if you're outputting this to the browser?
echo '<span style="color:#AFA;text-align:center;">Request has been sent. Please wait for my reply!</span>';
尽管只能通过浏览器在控制台上运行.
Won't work from console though, only through browser.
这篇关于PHP Echo文字颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文