首页显示值班记录行距难看,如何调整行距,获得较好看的效果?后台输出代码:
if ttt="1" then
document.write("<center><b><%=title%></b></center>");
document.write("<center><hr size=1>加入时间:<%=formatdatetime(addtime,1)%></center>");
document.write("<BR><%=content%>");
<% elseif ttt="0" then%>
document.write("<BR ><%=content%>");
<% elseif ttt="2" then%>
document.write("<BR><%=title%>");
<% elseif ttt="3" then%>
document.write("〖<%=title%>〗(<%=formatdatetime(addtime,1)%>)<%=glhtml(content)%>");
<%end if
rs.movenext
wend
首页调用脚本文件
<script language="JavaScript" src="news/ggjs.asp?id=编号&ttt=0&list=12" type="text/javascript"></script>
if ttt="1" then
document.write("<center><b><%=title%></b></center>");
document.write("<center><hr size=1>加入时间:<%=formatdatetime(addtime,1)%></center>");
document.write("<BR><%=content%>");
<% elseif ttt="0" then%>
document.write("<BR ><%=content%>");
<% elseif ttt="2" then%>
document.write("<BR><%=title%>");
<% elseif ttt="3" then%>
document.write("〖<%=title%>〗(<%=formatdatetime(addtime,1)%>)<%=glhtml(content)%>");
<%end if
rs.movenext
wend
首页调用脚本文件
<script language="JavaScript" src="news/ggjs.asp?id=编号&ttt=0&list=12" type="text/javascript"></script>
<!--
body{line-height:25px;}
-->
</style>
<!--
body{line-height:25px;}
-->
</style>
<body>
a<br>b<br>c
</body>这样就可以 自己看效果咯
1.5倍行距:style="line-height:150%"
2倍行距: style="line-height:200%"