您好我想为每个回声中添加特定的样式,但似乎没有任何效果。有人可以帮忙吗?我尝试向他们添加特定的div也不起作用。
echo "<table>";
while ($row = $result->fetch_assoc())
{
echo '<tr><td style="height=100px"><a href="">
<img src="'.$row['Image'].'" width="200px" height="200px" /></a></td>';
echo'<td>' .$row['ShopName'].'</td></tr>';
echo'<td>' .$row['ADDRESS'].'</td></tr>';
echo'<td>' .$row['Region'].'</td></tr>';
echo'<td>' .$row['DiscountRate'].'</td></tr>';
echo'<td>' .$row['Conditions'].'</td></tr>';
echo "</table>";
}else{
echo "0 results";
}
$con->close();
?>
答案 0 :(得分:1)
String number = "2147483649";
String int_max = "2147483647";
if (number.length() > int_max.length())
{
System.out.println("OVERFLOW");
}
else if (number.length() == int_max.length()){
int comparison = number.compareTo(int_max);
System.out.println(comparison > 0 ? "OVERFLOW" : "");
}
而非style="height:100px;"