最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
新闻中限制显示字数目
时间:2022-07-02 23:50:44 编辑:袖梨 来源:一聚教程网
这个用在里面限制字体个数的东西:
Dim rsTitle,tmpLeft
rsTitle=Rs("Title")
If Len(rsTitle)>intTitLen Then
rsLeft=rsTitle
Do While Len(rsLeft)>intTitLen 'Or Len(Right(rsTitle,intTitLen*j))>intTitLen
Response.Write Left(rsLeft,intTitLen)&"
"
rsLeft=Right(rsLeft,Len(rsLeft)-intTitLen)
Loop
If Not IsNull(rsLeft) Then
Response.Write rsLeft
End If
Else
Response.Write rsTitle
End If
这个市临时写得,写得比较差!谁要是有好的,别忘记交流阿!
Dim rsTitle,tmpLeft
rsTitle=Rs("Title")
If Len(rsTitle)>intTitLen Then
rsLeft=rsTitle
Do While Len(rsLeft)>intTitLen 'Or Len(Right(rsTitle,intTitLen*j))>intTitLen
Response.Write Left(rsLeft,intTitLen)&"
"
rsLeft=Right(rsLeft,Len(rsLeft)-intTitLen)
Loop
If Not IsNull(rsLeft) Then
Response.Write rsLeft
End If
Else
Response.Write rsTitle
End If
这个市临时写得,写得比较差!谁要是有好的,别忘记交流阿!
相关文章
- 太阳能热水器的原理是什么 07-28
- 王者荣耀世界小乔守护者玩法攻略 07-28
- 英雄联盟手游豹女连招技巧 07-28
- 向僵尸开炮王胖子厉害吗 07-28
- 原神月之四版本活动祈愿第一期介绍 07-28
- 小拇指凹坑,就是新时代的“手机病” 07-28