【发布时间】:2016-08-24 11:40:23
【问题描述】:
我想在我的 td 上添加一个类。所以我可以用css修改它。但是每次我写正确的 td 类时,我的页面都会停止工作。
这可能是我试图做什么?还是我必须以其他方式做到这一点?
$test= database_result($queryexe, 'MyDatabase');
Print("<td class="right">$test</td>\n");
td.right{
text-align: right;"
}
【问题讨论】:
-
要么转义双引号,要么将它们更改为单引号。
echo "hello \" <-";或echo "hello ' <-";