如何把客户端浏览器的"察看(V) -> 文字大小(X)"菜单强制设为“中”???在线等,解决了马上给分!!!!

woshihuzi 2005-11-14 10:21:42
我想首先用Javascript来解决这个问题?如果有,请给出办法。
如果javascript不能,那么,只能用样式表了,最简单的样式表如何写,如何调用?
我的网页test.asp内容如下:

<html>
<body>
<%
Response.Write "2008奥运吉祥物" & "<br>" & "<br>"
response.write "贝贝" & "<br>"
response.write "晶晶" & "<br>"
response.write "欢欢" & "<br>"
response.write "迎迎" & "<br>"
response.write "妮妮" & "<br>"
%>
</body>
</html>
...全文
118 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
是是非非 2005-11-14
  • 打赏
  • 举报
回复
用PX做单位,定义字体大小
在STYLE里面这么写:

* {font-size:12px;}

diyager 2005-11-14
  • 打赏
  • 举报
回复
给分啊你
不然扁你(~_~)
diyager 2005-11-14
  • 打赏
  • 举报
回复
直接在style里写body的CSS样式比较好,不用调用的

<html>
<head><title>test</title>
<style type="text/css">
<!--
body {font-size: 12px;}
-->
</style>
</head>
<body>
<%
Response.Write "2008奥运吉祥物" & "<br>" & "<br>"
response.write "贝贝" & "<br>"
response.write "晶晶" & "<br>"
response.write "欢欢" & "<br>"
response.write "迎迎" & "<br>"
response.write "妮妮" & "<br>"
%>
</body>
</html>
LifeForCode 2005-11-14
  • 打赏
  • 举报
回复
关注
看有没有人用js控制
text44 2005-11-14
  • 打赏
  • 举报
回复
<html>
<head><title>test</title>
<style type="text/css">
<!--
.style1 {font-size: 13px}
-->
</style>
</head>
<body class="style1">
<%
Response.Write "2008奥运吉祥物" & "<br>" & "<br>"
response.write "贝贝" & "<br>"
response.write "晶晶" & "<br>"
response.write "欢欢" & "<br>"
response.write "迎迎" & "<br>"
response.write "妮妮" & "<br>"
%>
</body>
</html>

satans18 2005-11-14
  • 打赏
  • 举报
回复
body {font-size:12px;}
woshihuzi 2005-11-14
  • 打赏
  • 举报
回复
嗬嗬,我不是想修改客户端的设置,只是想让他的浏览器在显示我的网页时,采用我的字体就行了。
样式表我还不太会,javascript会一点,不过我愿意都尝试一下。谢谢楼上各位的帮助。
jspadmin 2005-11-14
  • 打赏
  • 举报
回复
楼主如果是要强制将浏览器设置改变,是要操作客户端注册表的,那样会被杀毒软件等阻拦。建议用js或css控制好了。不要强行改浏览器设置
【 字体大小:<a href=# onClick="javascript:document.getElementById('contentfont').style.fontSize='16px';">大</a> <a href=# onClick="javascript:document.getElementById('contentfont').style.fontSize='14px';">中</a> <a href=# onClick="javascript:document.getElementById('contentfont').style.fontSize='12px';">小</a> 】
-----------------------------------------------------------------------------
欢迎光临我的小站http://www.pifoo.com 有什么问题可以给我留言http://www.pifoo.com/guestbook/ 我的QQ:33323489

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧