在HTML页面上显示多个图像。 [英] Show multiple images on HTML page.

查看:229
本文介绍了在HTML页面上显示多个图像。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将所有图像的地址保存到MySQL数据库中。使用查询(JSP)我将获得src。但是如何使用src在col-md-6中显示它们?那么我如何能够同时动态显示多个图像呢?



我尝试过的事情:



I have saved the addresses of all the images into the MySQL database. Using query(JSP) I will get the src. But how can I show them in col-md-6 using the src? So how can I manage to show multiple images dynamically at the same time?

What I have tried:

String sql="SELECT * FROM customer_goods where gd_id ='"+ request.getParameter("gid")+"';";



在customer_goods表中,我保存了图像地址,问题如何显示它们?


In the customer_goods table, I have saved the image addresses, The problem How to show them?

推荐答案

< div style = width:500; background-color:white; height:200px; overflow:scroll; overflow-x:scroll; overflow-y:hidden;>



< ; img style =float:left; display:inlinesrc =images_news / imagex.gifwidth =150height =100alt =not available/>

< ; img style =float:left; display:inlinesrc =images_news / imagey.pngwidth =120height =100alt =not available/>

< ; img style =float:left; display:inlinesrc =images_news / imagef.gifwidth =150height =100alt =not available/>

< ; img styl e =浮动:左; display:inlinesrc =images_news / imagep.gifwidth =150height =100alt =not available/>

< img style =float:left; display:inlinesrc =images_news / imageq.jpgwidth =160height =100alt =not available/>

< img style =float:left; display:inlinesrc =images_news / imager.icowidth =200height =100alt =not available/>

< / div>
<div style="width:500; background-color:white; height:200px; overflow:scroll; overflow-x: scroll;overflow-y: hidden;">

<img style=" float:left; display:inline" src="images_news/imagex.gif" width="150" height="100" alt="not available" />
<img style=" float:left; display:inline" src="images_news/imagey.png" width="120" height="100" alt="not available" />
<img style=" float:left; display:inline" src="images_news/imagef.gif" width="150" height="100" alt="not available"/>
<img style=" float:left; display:inline" src="images_news/imagep.gif" width="150" height="100" alt="not available" />
<img style=" float:left; display:inline" src="images_news/imageq.jpg" width="160" height="100" alt="not available" />
<img style=" float:left; display:inline" src="images_news/imager.ico" width="200" height="100" alt="not available" />
</div>


这篇关于在HTML页面上显示多个图像。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆