最新下载
热门教程
- 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
这个市临时写得,写得比较差!谁要是有好的,别忘记交流阿!
相关文章
- 绝区零2.1星见雅音擎选择推荐 07-24
- 高盛与纽约梅隆银行联手推出货币市场基金区块链 07-24
- 阴阳师云间不见岳技能介绍一览 07-24
- 晴空之下深邃隧道第1区通关攻略 07-24
- os币价格 - OS币价格飙升 07-24
- 曙光重临电系阵容怎么搭配 电系阵容搭配推荐 07-24