asp代码如何实现一行两列
<divclass="right_body"><ulclass="news"><%Setrs=server.CreateObject("adodb.recordset")...
<div class="right_body">
<ul class="news">
<%
Set rs = server.CreateObject("adodb.recordset")
exec = "select top 10 * from news order by id desc"
rs.Open exec, conn, 1, 1
Do While Not rs.EOF
%>
<li><a href="news_view.asp?id=<%=rs("id")%>" title="<%=rs("title")%>"><%=left(rs("title"),35)%></a></li>
<%
rs.movenext
Loop
%>
</ul>
</div>
这段代码如何才能实现一行显示两列? 展开
<ul class="news">
<%
Set rs = server.CreateObject("adodb.recordset")
exec = "select top 10 * from news order by id desc"
rs.Open exec, conn, 1, 1
Do While Not rs.EOF
%>
<li><a href="news_view.asp?id=<%=rs("id")%>" title="<%=rs("title")%>"><%=left(rs("title"),35)%></a></li>
<%
rs.movenext
Loop
%>
</ul>
</div>
这段代码如何才能实现一行显示两列? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询