如何评价你的名字:Vbsript 的一个小问题,热心人请进

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/30 08:11:29
我想显示为:
The number of people is:
12
我用document.write("The number of people is: " & vbcrlf & total)这里的total=12,结果显示为The number of people is:12
为什么我显示不了换行功能,到底是哪里错了,谢谢!!

document.write("The number of people is: <br>" & total)

vbCrlf一般用在Msgbox,InputBox中,

Msgbox("The number of people is: " & vbcrlf & total)则会换行显示;

chr(10)+chr(13)换行功能也一般用在弹出的InputBox和Msgbox中,

在页面输出时用<br>较为通用!

评论 ┆ 举报

最佳答案此答案由提问者自己选择,并不代表百度知道知识人的观点

回答:自由之声
学弟
5月6日 20:43 是在哪个位置?

揪错 ┆ 评论 ┆ 举报

document.writeln("The number of people is: <br>12")