These days have been doing the query page. Yesterday, I met this: The art is provided on the page to display the HTML files of 9 pictures in 3 rows of pictures on the page. It is a very simple JSP loop to solve the problem. indeed. However, I did more than 4 hours. It is ridiculous, just because of the wickle
, I am so messy my page. When I found the
, the problem was solved. Let's talk about how I finally solve the problem. First determine 3 lines 3 columns, with a nested cycle. Then, it is necessary to determine which HTML statements that circulate, that is, decompose the Table of 9 pictures into a recyclable HTML code segment. I have to say that Dreamweaver's graphics / code mixed display feature, this is really a good thing that other software is not available. Just use this feature, I will find the first picture
and use Begin .. Al commented it: ... 1lie Begin
The first picture td> 1 lie end ... After the third one, I wrap it. This is some wrap code, jumps them over. Then go to the last one, and peel the end. In this way, the messy HTML code is finally regulated: 1 hang begin 1 lie begin .. 1 Lie End {lie fengge cots} 2 Lie Begin .. 2 lie end {lie fengge cots} 3 Lie Begin .. 3 lie end {lie jieshu Codes} {hangfengge code} 1 hang end ... 3 hang begin ... 3 hang end {jiewei code} Next is to convert static code into JSP code. It's just a lot, because I just do this. :) Analyze the HTML of the static page, it is not difficult to find that the three columns of the first line is similar, only the end of the third column is different; and the internal processing of the 3 lines is the same, the difference is different.