asp如何控制标题字数
<TBODY><%sql="selectC_Title,C_Editor,C_Source_Url,C_ID,C_Last_Modify,C_Categoryfromco...
<TBODY>
<%
sql = "select C_Title,C_Editor,C_Source_Url,C_ID,C_Last_Modify,C_Category from content where C_Recommend=1 and C_Category = 14 order by C_Weight desc, C_Last_Modify desc"
rs.open sql,conn,1,1
i=0
while not rs.eof and i < 8
title=rs("C_Title")
author=rs("C_Editor")
contentID=rs("C_ID")
modifyTime = Dateadd("s",rs("C_Last_Modify"),"1970-01-01 8:00:00")
time1=year(modifyTime)
time2=month(modifyTime)
time3=day(modifyTime)
time4=hour(modifyTime)
time5=minute(modifyTime)
lastTime=time1&"-"&time2&"-"&time3
%>
<TR>
<TD> <a href="<%= rs("C_Source_Url")%>
" target="_blank"><%=title%></a> <span class="style5"><%=lastTime%></span></TD>
</TR>
<%
rs.movenext
i = i + 1
wend
rs.close
%>
</TBODY> 展开
<%
sql = "select C_Title,C_Editor,C_Source_Url,C_ID,C_Last_Modify,C_Category from content where C_Recommend=1 and C_Category = 14 order by C_Weight desc, C_Last_Modify desc"
rs.open sql,conn,1,1
i=0
while not rs.eof and i < 8
title=rs("C_Title")
author=rs("C_Editor")
contentID=rs("C_ID")
modifyTime = Dateadd("s",rs("C_Last_Modify"),"1970-01-01 8:00:00")
time1=year(modifyTime)
time2=month(modifyTime)
time3=day(modifyTime)
time4=hour(modifyTime)
time5=minute(modifyTime)
lastTime=time1&"-"&time2&"-"&time3
%>
<TR>
<TD> <a href="<%= rs("C_Source_Url")%>
" target="_blank"><%=title%></a> <span class="style5"><%=lastTime%></span></TD>
</TR>
<%
rs.movenext
i = i + 1
wend
rs.close
%>
</TBODY> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询