ASP中怎么让输出的文字右对齐

来源:百度知道 编辑:UC知道 时间:2024/05/21 08:13:30
<%
if owen1<>"" and owen2<>"" then
sql="select * from NEWS where BigClassName='"& owen1 &"' and SmallClassName='"& owen2 &"' order by id desc"
set rs=conn.execute(sql)
do while not rs.eof
%>
javastr=javastr+"<tr><td height=\"24\" style=\"BORDER-bottom: #999999 1px dotted\">"
javastr=javastr+"<img src='Img/dot.gif' width='7' height='11'> <span style=\"font-size:9pt;line-height:15pt\"><% if rs("imagenum")<>"0" then response.write "<img src='images/news.gif' border=0 alt='图片新闻'>" end if %><a href=\"shownews.asp?id=<%=rs("id")%>\" title=\"<%=rs("title")%>\" target=\"_blank\"><%=left(rs("ti

在这句中加入对齐方式的CSS语句

javastr=javastr+"<tr><td height=\"24\" style=\"BORDER-bottom: #999999 1px dotted\">"

改为

javastr=javastr+"<tr><td height=\"24\" style=\"BORDER-bottom: #999999 1px dotted;align=right;\">"

一般情况都是使用样式去控制