如何风格php echo输出 [英] how to style php echo output
本文介绍了如何风格php echo输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这可能是愚蠢的问题,但我找不到答案。如何使用CSS样式echo输出?我有这个代码:
It's probably stupid question, but I can not find an answer. How can I style echo output with css? I have this code:
echo "<div id="errormsg"> Error </div>";
现在它显示语法错误,我想因为errormsg的引号。我试过单引号,但没有效果。谢谢
Now it displays syntax error, I think because of those quotes around errormsg. I've tried single quotes, but with no effect. Thank you
推荐答案
试用
echo "<div id=\"errormsg\"> Error </div>";
这篇关于如何风格php echo输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文