已创建以下代码,其中包括背景图像和倾斜表。该表的内容是使用 PHP 从数据库中提取的。
除了更改字体之外,我没有能力在表格中设置 PHP 文本的样式,而是更改“表格”类。在这种情况下是否有一种特定的方式使用 PHP 回显文本来设置它的样式。我想更改文本的大小和颜色。
非常感谢
<div class="information_request_form">
<img src="images/information_request_form.png" width="1051" height="1013" />
<div class="skewed">
<div class="table" >
<?php
$array = explode(',', $_SESSION['cart']);
echo "<span ><table width='835' border = '0'>";
foreach($array as $cartId) {
$ship_name = $row_ships['ship_name'];
$ship_image = $row_ships['image'];
echo "<tr>";
echo "<td width='110' height='58'><img src='images/ships/$ship_image'width='83' height='53' /> </td>";
echo "<td width='620' height='58'>$ship_name</td>";
echo "<td width='35' height='58'><a href='cart.php?action=delete&ship_id=$cartId'><img src='images/trash.png' width='31' height='42' /></a></td>";
echo "<td height='58'>$cartId</td>";
echo "</tr>";
}
echo "</table></div>";
?>
</div>
</span>
<div class="table_email">
<table>
<tr>
<td height="54" >
<input name="email" type="text" onfocus="if(this.value=='enter your email address') this.value = ''" onblur="if(this.value=='') this.value = 'enter your email address'" value="enter your email address" size="50" maxlength="50">
</td>
</tr>
</table>
</div>
</div>