如何调整行距?急急!

yanboneck 2008-10-23 05:34:18
首页显示值班记录行距难看,如何调整行距,获得较好看的效果?



后台输出代码:
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>
...全文
5208 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
danqe 2008-10-24
  • 打赏
  • 举报
回复
类似于这样比较实用:
1.5倍行距:style="line-height:150%"
2倍行距: style="line-height:200%"
lizhimin0310 2008-10-23
  • 打赏
  • 举报
回复
那就把你的style1中加上{line-height:25px;}
neo_yoho 2008-10-23
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 yanboneck 的回复:]
加在body标签下,调整的是哪一部分的显示啊,我加的 <br id="style1">,再用CSS处理也没用。
[/Quote]
汗水

<style>
<!--
body{line-height:25px;}
-->
</style>
<body>
a<br>b<br>c
</body>

这样就可以 自己看效果咯
yanboneck 2008-10-23
  • 打赏
  • 举报
回复
加在body标签下,调整的是哪一部分的显示啊,我加的<br id="style1">,再用CSS处理也没用。
Atai-Lu 2008-10-23
  • 打赏
  • 举报
回复
<style>
<!--
body{line-height:25px;}
-->
</style>

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧