【发布时间】:2015-01-27 16:00:12
【问题描述】:
我正在尝试将备用行颜色添加到我的 mysql 表中。我正在使用此代码来回显表结构
//creating our table
echo "<tr>";
echo "<th>ID</h3></th>";
echo "<th>First Name</th>";
echo "<th>Last Name</th>";
echo "<th>email</th>";
echo "<th>street</th>";
echo "<th>Suburb</th>";
echo "<th>State</th>";
echo "<th>Action</th>";
echo "</tr>";
到目前为止我已经尝试过
//creating our table
echo "<tr:nth-child(odd) { background-color: #ccc; }>";
并将其添加到外部样式表
table tr:nth-child(odd) { background-color: #ccc; }>";
但这两种方法都不起作用。我怎样才能做到这一点
【问题讨论】:
标签: mysql