最新下载
热门教程
- 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
这个市临时写得,写得比较差!谁要是有好的,别忘记交流阿!
相关文章
- 疯狂水世界海兽选择指南 06-03
- GraphCast机器学习模型将大气可预报性扩展至30天以上 06-03
- Java 自定义 View - Kotlin 自定义 View 06-03
- 飞韵听书app如何听书 06-03
- 马戏团之夜公测上线时间揭晓 何时正式推出 06-03
- 马戏团之夜第一章通关指南:掌握关键攻略技巧 06-03