Response.Write 怎样修改字体

来源:百度知道 编辑:UC知道 时间:2024/06/28 04:36:56
我想修改这段代码:

Response.write "您当前的IP是:"
Response.write ReqIP()
Response.write "  来自:"
Response.write Look_Ip(Format_Ip(ReqIP()))
Response.write "<br>"
Response.write "<br>"
if TRIM(request("IpValue"))="" then
Response.write "<br>"
else
IP=TRIM(request("IpValue"))
t1=Timer*1000

Dim regEx, Match, thePattern, theIP
theIP = TRIM(request("IpValue"))
thePattern = "^(([0-2]{0,1}\d{1,2})\.){3}([0-2]{0,1}\d{1,2})$"
Set regEx = New RegExp
regEx.Pattern = thePattern
regEx.IgnoreCase = True
Set Match = regEx.Execute(theIP)
If Match.Count Then
response.write "您查询的IP是:"&ip&"  来自:"&Look_Ip(Format_Ip(IP))&"(耗时:"&(Timer*1000-t1)&"ms)"
Else

运行后字体各项属性显示为:【<center><span style=&quo

在需要修改字体属性语句的前边加上:
Response.write "<center><span style="font-size:14px;"
比如"当前的ip是"和"来自"都得居中显示
则在Response.write " 来自:"前边需要加上以下两句
Response.write "<br>" //在下一行显示相当于回车
Response.write "<center>"

输出是红色的题字体如下:

Response.Write ("<font color = red >124</font>")