How to make a picture out of the database sideways display ....

Category: Web Develop
 
yangqianfeng00
2013-08-20 04:50:33

Sponsored Links
How to make a picture out of the database sideways display ....
example:
<table> / / large table

</table>
Remove all of which are vertical with the
best to write a simple code to facilitate understanding Well!!!

Sponsored Links

whuazi_
2013-08-20 05:08:33
really heard, haha ​​
css under study it,
jys5090
2013-08-20 05:23:34
lz say "sideways display" refers to the image rotated 90 degrees to do?
Tivy
2013-08-20 05:28:41
Now get diagram shows how it should be very simple, CSS easy to get
hhyyltc
2013-08-20 05:40:09
I think the landlord mean horizontal display.
should be the art of reception do ah.
with Drdeamweaver that they can ah
chenlingji
2013-08-20 05:50:17
query from the database instance is out of the picture
such as pictures of name 1 2 3 4
Now check out the picture placement is
1
2
3
4
so
And I want is
1 ; 234 this place

Here is the program

<table width = "714" height = " ; 214 "border =" 0 "align =" center "cellpadding =" 0 "cellspacing =" 0 ">
; <tr>
; <td> <table width="177" height="215" border="0" cellpadding="0" cellspacing="0">
<tr>
; <td width="257">

<table width="177" height="262" border="0" cellpadding="0" cellspacing="0">
<% response.setCharacterEncoding ("UTF-8"); int i = 0; List Partial = null; Partial = DAOFactory.getproductDAOinstance (). queryPartial ();
Iterator ; iter2 = Partial.iterator ();
while (iter2.hasNext ())
{
Product product1 = (Product) iter2.next (); ;
i + +;
/ / loop through output is taken from the database content. int productid = product1.getId ();
String name = product1.getName ();
float saleprice = product1.getSaleprice ();
<tr>
<td height="145"> <div align="center"> <img src = "indexshow.jsp? id = <% = productid%>" width = "154" height = "123"> </div> </td>
</tr>
;
; <tr>
; <td height="28"> <div align="center"> Name: <% = name%> </div> </td>
; </tr>
<tr>
<td height="28"> <div align="center"> Member price: ¥ <% = saleprice%> </div> ; </td>
</tr>
< ; tr>
; <td height="38"> <div align="center"> <a href = "Detailedinformation.jsp? id = <% = productid%>"> ; <img src="img/icon_car.gif" width="94" height="25" border="0"> </a> </div> ; </td>
</tr>
< ; tr>
; <td height="5"> </td>
</tr>
<%
}
if (i == 0)
{
/ / i is equal to 0 means no information. Then a prompt
%>
<tr valign="top">
<td> no content </td>
</tr>
<%
}
%>
</table>
< ;/ td>
</tr>
; </table>

</td>
</tr>
</table>

NFLjerseys
2013-08-20 05:55:23
without <td> is 1,2,3,4 , the
hiyypy00
2013-08-20 05:57:24
you want to write in <td> front of the while loop, then that is displayed sideways,
front of you wrote in <tr> affirmed, <tr> a line ah. .
lx891024
2013-08-20 06:07:17
give an example:

<table border="0">
<tr>
; <logic:iterate id="temp" name="templatearray" indexId="index">
<td>
<bean:write name="temp" property="templatename" />
</td>
<% - Control for rows, each 4 -%>
<c:if test="${(index+1)%4 == 0}">
</tr> ;
<tr>
</ c: if>
</ logic: iterate>
</tr>
</table>
liyi20050
2013-08-20 06:22:43
tcmis (Did you forget it?) written in which <td> front ah
help me change and then sent to the next without
crystal0906
2013-08-20 06:34:40
did not understand that there are people give suggestions did!
kwd686
2013-08-20 06:48:46
Control output per line number <td> </td> on it.
banju198407
2013-08-20 07:05:15
<tr>
while () {<td> </td>}
</tr>
jy00455455
2013-08-20 07:17:25
weighs, I think To turn 90 degrees ah,
dawdadasdasd
2013-08-20 07:32:18
should be written in <tr> inside it, <tr> is a line of A
qiuchangren
2013-08-20 07:38:41
I also thought put pictures tasikmalaya yet.
understanding of html is very simple ah. tr is the line, td is a cell
qq1065144643
2013-08-20 07:51:02
<tr>
while () {<td> </td>}
</tr>
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.