CSS:
.image-container {
position: absolute;
margin: 0 auto;
}
.image-questionid {
left: 500px;
width: 130px;
font-size: 20px;
position: absolute;
overflow: auto;
overflow-x: hidden;
overflow-y: hidden;
}
这是HTML
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
$questID = $row['two_three_id'];
$factor1 = $row['factor1'];
$factor2 = $row['factor2'];
?>
<div class="image-container">
<div class = "image-questionid"><u>Question <?php echo $questID; ?></u></div>
</div>
以上代码是我编写的代码,在我从数据库中检索后,它们似乎相互重叠。如何隐藏其他值并且一次只显示1个值?