【发布时间】:2016-04-13 13:32:33
【问题描述】:
我正在开发 TeamsSpeak 服务器的网站,我想为使用 php 显示的文本设置样式:
echo "Welcome: ".ucwords($name).". IP of our server is: ".ucwords($ip)." , and port is: ".ucwords($port)."<br>";
我想为整个文本设置样式。我尝试添加标签,例如
echo <div class="welcome_msg">"Welcome: ".ucwords($name).". IP of our server is: ".ucwords($ip)." , and port is: ".ucwords($port)."<br>"</div>;
它显示一个错误:Parse error: syntax error, unexpected '/' in C:\xampp\htdocs\index.php on line 9
我该如何解决?
【问题讨论】:
标签: php html css styles text-styling