显示多行 [英] Display multiple lines
本文介绍了显示多行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
有人可以给我一些关于在一个字段中显示多行的最佳和/或最简单方法的提示。从textarea收集数据。字段
提交表单时,我想在生成的HTML页面中显示所有数据(多行
行)。数据显示在一行上
(显然)并且不会在不操纵字符串变量的情况下换行。
是否有更简单的方法来显示数据?
谢谢,
Joe
解决方案
Joe,
>
以下是html输出的示例。
< html>
< head>
< ; title>< / title>
< / head>
< style>
..info
{
宽度:150px;
}
< / style>
< body>
< span class =''info''>
这是您的文本需要去的地方。只需在信息类中设置
样式的宽度。
< / span>
< / body>
< / html>
-dlbjr
辨别施舍的决议
感谢您的帮助。不幸的是,显示器仍在一条线上。我
已经包含了一些代码片段:
< html>
< style>
..info
{
宽度:300px;
}
< / style>< ; body bgcolor = #ffffff>
..
..
工作请求/问题条件< br>
< span class =''info''><%= strWorkReq%>< br>< / span>
服务执行< br>
< span class =''info''><%= strServicePerf%>< br>
< / span>
这看起来是否正确?
感谢您的帮助。
Joe
" dlbjr" < DL *** @ imlost.com>在消息中写道
news:eR ************** @ tk2msftngp13.phx.gbl ...Joe,>
以下是html输出的示例。
< html>
< head>
< title>< / title>
< / head>
< style>
.info
{
宽度:150px;
}
< / style>
< body>
< span class =''info''>
这是您的文字需要去的地方。只需在样式的信息类
中设置宽度。
< / span>
< / body>
< / html>
-dlbjr
辨别施舍的决议
><%=替换(strWorkReq,vbCrlf ,"< br>")%><
" JStrauss" <苏** @ strausselec.com> schreef in bericht
新闻:%2 **************** @ TK2MSFTNGP11.phx.gbl ...感谢帮助。不幸的是,显示器仍在一条线上。
我已经包含了一些代码片段:
< html>
< style>
.info
{
宽度: 300px;
}
< / style>< body bgcolor = #ffffff>
。
。
工作要求/问题条件< br>
< span class =''info''><%= strWorkReq%>< br>< / span>
服务执行< br>
< span class =''info ''><%= strServicePerf%>< br>
< / span>
这看起来是否正确?
感谢您的帮助。
Joe
" dlbjr" < DL *** @ imlost.com>在消息中写道
新闻:eR ************** @ tk2msftngp13.phx.gbl ...Joe,
>以下是html输出的示例。
< html>
< head>
< title>< / title>
< / head> ;
< style>
.info
{
宽度:150px;
}
< / style>
< body>
< span class =''info''>
这是您的文字需要去的地方。只需在样式的info
类中设置宽度。
< / span>
< / body>
< / html>
-dlbjr
辨别施舍的决议
Hello,
Can anybody give me some tips on the best and/or easiest way to display
multiple lines in a field. The data is collected from a "textarea" field
when the form is submitted, and I want to display all of the data (multiple
lines) in a resulting HTML page. The data displays on a single line
(obviously) and does not wrap without manipulation of the string variable.
Is there an easier way to display the data?
Thanks,
Joe
解决方案
Joe,
Here is a sample of html output.
<html>
<head>
<title></title>
</head>
<style>
..info
{
width: 150px;
}
</style>
<body>
<span class=''info''>
This is where your text needs to go. Just set the width in the info class of
the style.
</span>
</body>
</html>
-dlbjr
Discerning resolutions for the alms
Thanks for the help. Unfortunately, the display is still on a single line. I
have included some snippets of the code:
<html>
<style>
..info
{
width: 300px;
}
</style><body bgcolor=#ffffff>
..
..
Work Requested / Problem Condition<br>
<span class=''info''><%= strWorkReq %><br></span>
Services Performed<br>
<span class=''info''><%= strServicePerf %><br>
</span>
Does this look correct?
Thanks for any help.
Joe
"dlbjr" <dl***@imlost.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...Joe,
Here is a sample of html output.
<html>
<head>
<title></title>
</head>
<style>
.info
{
width: 150px;
}
</style>
<body>
<span class=''info''>
This is where your text needs to go. Just set the width in the info class of the style.
</span>
</body>
</html>
-dlbjr
Discerning resolutions for the alms
><%= Replace(strWorkReq,vbCrlf,"<br>") %><
"JStrauss" <su**@strausselec.com> schreef in bericht
news:%2****************@TK2MSFTNGP11.phx.gbl...Thanks for the help. Unfortunately, the display is still on a single line. I have included some snippets of the code:
<html>
<style>
.info
{
width: 300px;
}
</style><body bgcolor=#ffffff>
.
.
Work Requested / Problem Condition<br>
<span class=''info''><%= strWorkReq %><br></span>
Services Performed<br>
<span class=''info''><%= strServicePerf %><br>
</span>
Does this look correct?
Thanks for any help.
Joe
"dlbjr" <dl***@imlost.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...Joe,
Here is a sample of html output.
<html>
<head>
<title></title>
</head>
<style>
.info
{
width: 150px;
}
</style>
<body>
<span class=''info''>
This is where your text needs to go. Just set the width in the infoclass of
the style.
</span>
</body>
</html>
-dlbjr
Discerning resolutions for the alms
这篇关于显示多行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文