想用ECHO 输入 后面这些内容 <tr onMouseOver="this.style.backgroundColor='#F5F5F5'" onMouseOut="this.style.backgroundColor=''">结果由于backgroundColor 他也调用过'所以
echo '<tr onMouseOver="this.style.backgroundColor='#F5F5F5'" onMouseOut="this.style.backgroundColor=''">'输出就有问题 应该如何改动~!
echo '<tr onMouseOver="this.style.backgroundColor='#F5F5F5'" onMouseOut="this.style.backgroundColor=''">'输出就有问题 应该如何改动~!
试试...
$str=<<<EOT
<tr onMouseOver="this.style.backgroundColor='#F5F5F5'" onMouseOut="this.style.backgroundColor=''">
EOT;
echo $str;
$str="<tr onMouseOver=\"this.style.backgroundColor='#F5F5F5'\" MouseOut=\"this.style.backgroundColor=''\">"; echo htmlspecialchars($str);
最佳