![]() |
#2
hn33262010-05-12 01:34
|
代码如下
<a href="ShowDetail.asp?type=Article&id=<%=rs("id")%>" target="_blank"><%if rs("titlecolor")<>"" then%><font style="color:<%=rs("titlecolor")%>;"><%=Left(rs("title"),15)%></font><%else response.Write(mid(rs("title"),1,25))
response.write ("...") end if%></a><span>[<%=rs("posttime")%>]</span></li>
<%
rs.movenext
next
end if
%>
我使用
><%else response.Write(mid(rs("title"),1,25))
response.write ("...") end if%>
之后发现每行都有... 了 怎么让超出标题27 后剩下的表示...