注册 登录
编程论坛 ASP技术论坛

怎样改变网页中的字体大小和颜色?

tepnidh 发布于 2009-08-14 07:02, 7072 次点击
<%

dim exec
exec="delete * from gb where id="&request.querystring("id")
conn.execute exec
conn.close
set conn=nothing
response.write "<b> 删除成功!</b> "
response.write " <a href='index.asp'><b> 返  回 >>></b></a>"
response.end

%>
6 回复
#2
multiple19022009-08-14 08:02
<span style="font-size:13px">文字文字文字</span> <br>

<span style="color:red">文字文字文字</span> <br>

<span style="font-size:13px;color:red">文字文字文字</span>

如果XHTML 1.0的话换行用<br />
#3
tepnidh2009-08-14 09:48
回复 2楼 multiple1902

multiple1902老师,您好,我按您的指点是这样加进去的,然后没成功,显示错误类型是:
 
错误类型:
Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
/pz/lyb/del.asp, line 10, column 33
response.write "<b> <span style="font-size:13px;color:red">文字文字文字</span> </b> "
--------------------------------^


<%
 dim exec
exec="delete * from gb where id="&request.querystring("id")
conn.execute exec
conn.close
set conn=nothing
response.write "<b><span style="font-size:13px;color:red">删除成功</span></b> "
response.write " <a href='index.asp'><b><span style="font-size:13px;color:red">返回</span></b></a>"
response.end
 %>
#4
jingjing3162009-08-14 12:31
HTML字体(fonts)
字体标签为<font>
– 使用size属性指定大小
– 使用face属性指定字体名
– 使用color指定字体颜色
<html>
<body>

<h2>字体标签使用示例</h2>
<h3>两只蝴蝶</h3>
<p>亲爱的你慢慢飞</p>
<p><font size="4" face="楷体_GB2312">
小心前面带刺的玫瑰
</font></p>
<p><font size="5" face="黑体">
亲爱的你张张嘴
</font></p>
<p><font size="5" color="red" face="隶书">
风中花香会让你沉醉
</font></p>
<p><font size="4" face="仿宋_GB2312">
亲爱的你跟我飞
</font></p>
<p><font size="4" face="幼圆">
<b>穿过丛林去看小溪水</b>
</font></p>

</body>
</html>
可以参考以上代码

[ 本帖最后由 jingjing316 于 2009-8-14 12:33 编辑 ]
#5
tepnidh2009-08-14 21:04
回复 4楼 jingjing316

谢谢!
#6
hello1032009-08-14 23:45
在ASP中(或者所有后台语言中),“”表示一个句子,例如:
<%  
dim exec
exec="delete * from gb where id="&request.querystring("id")
conn.execute exec
conn.close
set conn=nothing
response.write "<b style='color:#334455'> 删除成功!</b> "
response.write " <a href='index.asp' style='border:dashed 1px #ff00cc'><b> 返  回 >>></b></a>"
response.end  
%>
其实在实际中应用模板,CSS链接搞定的
#7
tepnidh2009-08-15 00:58
回复 6楼 hello103

谢谢multiple1902 ,jingjing316, hello103三位老师的点拨,问题已解决,再次表示感谢!

呵呵,只有20分啦,就这样分配了,下次再多给点吧!

[ 本帖最后由 tepnidh 于 2009-8-15 01:01 编辑 ]
1