并排显示图像 [英] show image side by side

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

问题描述

我想让每个图像彼此生成但是通过这个代码

图像逐个生成。

请帮助我。





image + = @

< img runat =serverstyle ='height:150px; width: 150px; margin:2px; float:left'id ='+ Convert.ToString(ds.Tables [0] .Rows [0] [ImgName])+'src ='.. / Upload / Photogallery / + Convert.ToString(ds.Tables [0] .Rows [0] [ImgName])+'/>

+ Convert.ToString(ds.Tables [0] .Rows [0] [Title])+

i want each image generate beside each other but thru this code
images generate vertically one by one.
please help me.


image += @"

<img runat="server" style='height:150px; width:150px; margin:2px; float:left' id='" + Convert.ToString(ds.Tables[0].Rows[0]["ImgName"]) + "' src='../Upload/Photogallery/" + Convert.ToString(ds.Tables[0].Rows[0]["ImgName"]) + "'/>

" + Convert.ToString(ds.Tables[0].Rows[0]["Title"]) + "

推荐答案

你的问题不是很清楚。

它可能对你很有帮助如何让文字显示图像?
Your question is not so much clear.
It may be helpfull for you how to make the literal to show the image?


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

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