文本换行 [英] Text Wrap

查看:63
本文介绍了文本换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法强制下面的testxxxxx文本换行或保持在它的单元格的

200px宽度内?有时候因为篇幅很长,我有很长的网址可以制作一封HTML电子邮件

。我想也许有一个像

NOWRAP这样的标签可能会阻止这种行为。


有什么想法吗?


HTML:


< table border =" 0" CELLPADDING = QUOT; 0" CELLSPACING = QUOT; 0" width =" 200">

< tr>

< td width =" 200"> test

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx< ; / td>

< / tr>

< / table>

解决方案

Scott于2006年12月12日在microsoft.public.inetserver.asp.general写道:

有没有办法强制下面的testxxxxx文本包裹或保留在200px宽度的细胞?有时我会长篇大论,因为篇幅很长,所以会制作一个html电子邮件表。我想也许有像NOWRAP这样的标签可能会阻止这种行为。

任何想法?

HTML:

< table border =" 0" CELLPADDING = QUOT; 0" CELLSPACING = QUOT; 0" width =" 200">
< tr>
< td width =" 200"> test
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx
x< / td>
< / tr>
< / table>




不使用服务器端ASP代码。


请问客户群[CSS]


-

Evertjan。

荷兰。

(请将x''es更改为我的电子邮件地址中的点数)


将是哪个组?

Evertjan。 <前************** @ interxnl.net>在消息中写道

news:Xn ******************** @ 194.109.133.242 ...

Scott在2006年12月12日的microsoft.public.inetserver.asp.general上写道:

有没有办法强制下面的testxxxxx文本在200px宽度内包裹或保持
它的细胞?有时我会长篇大论,因为篇幅很长,所以会制作一个html电子邮件表。我想也许有像NOWRAP这样的标签可能会阻止这种行为。

任何想法?

HTML:

< table border =" 0" CELLPADDING = QUOT; 0" CELLSPACING = QUOT; 0" width =" 200">
< tr>
< td width =" 200"> test
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx
x< / td>
< / tr>
< / table>



不使用服务器端ASP代码。

请询问客户端组[CSS]

-
Evertjan。
荷兰。
(请将我的电子邮件中的x'变为点数)



>会是哪一组?

任何想法?


请询问客户群组[CSS]




怎么样:microsoft.public.scripting.jscript


D.


Is there a way to force the below testxxxxx text to wrap or stay within the
200px width of it''s cell? Sometimes I have long url''s that make a html email
table stretch because of long length. I thought maybe there was a tag like
NOWRAP that may prevent this behavior.

Any ideas?

HTML:

<table border="0" cellpadding="0" cellspacing="0" width="200">
<tr>
<td width="200">test
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx</td>
</tr>
</table>

解决方案

Scott wrote on 12 feb 2006 in microsoft.public.inetserver.asp.general:

Is there a way to force the below testxxxxx text to wrap or stay
within the 200px width of it''s cell? Sometimes I have long url''s that
make a html email table stretch because of long length. I thought
maybe there was a tag like NOWRAP that may prevent this behavior.

Any ideas?

HTML:

<table border="0" cellpadding="0" cellspacing="0" width="200">
<tr>
<td width="200">test
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx
x</td>
</tr>
</table>



Not with serverside ASP code.

Please ask a clientside group [CSS]

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


which group would that be?
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.242...

Scott wrote on 12 feb 2006 in microsoft.public.inetserver.asp.general:

Is there a way to force the below testxxxxx text to wrap or stay
within the 200px width of it''s cell? Sometimes I have long url''s that
make a html email table stretch because of long length. I thought
maybe there was a tag like NOWRAP that may prevent this behavior.

Any ideas?

HTML:

<table border="0" cellpadding="0" cellspacing="0" width="200">
<tr>
<td width="200">test
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx
x</td>
</tr>
</table>



Not with serverside ASP code.

Please ask a clientside group [CSS]

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)



> which group would that be?

Any ideas?


Please ask a clientside group [CSS]



How about : microsoft.public.scripting.jscript

D.


这篇关于文本换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆