我正在开发一个新闻部分,其中包含文本和图像,要单击的图像必须显示其原始大小。有人可以帮我弄这个吗? <?php $select_stmt=$db->prepare("SELECT * FROM teste ORDER BY id DESC;" ); //sql select query $select_stmt->execute(); while($row=$select_stmt->fetch(PDO::FETCH_ASSOC)) {?><div class="container" id="fadein"> <div class="row"> <div class="col-sm-4"> <div id="imagem"><img src="upload/<?php echo $row['image']; ?>" class="imagem"></div> <script src="scripts/javascript.js"></script> </div> <div class="col-sm-8"> <div class="col-sm-12" id="titulo"><?php echo $row['titulo'];?></div> <br> <div class="col-sm-12" id="sub_titulo"><?php echo $row['sub_titulo'];?></div> <br> <div class="col-sm-12" id="texto"><?php echo $row['texto'];?></div> </div> </div> <br> <div class="row"> <div class="col-sm-6" align="right"><a href="edit.php?update_id=<?php echo $row['id']; ?>" class="btn btn-warning">Editar</a></div> <div class="col-sm-6"><a href="?delete_id=<?php echo $row['id']; ?>" class="btn btn-danger">Eliminar</a></div> </div> <br> <br> <br> <p class="barra"></p> <br> <br></div><?php}?>
- 2 回答
- 0 关注
- 145 浏览
添加回答
举报
0/150
提交
取消