+ -
当前位置:首页 → 问答吧 → 改变字体大小代码

改变字体大小代码

时间:2010-09-29

来源:互联网


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>改变字体大小代码</title> <script type="text/javaScript"> function doZoom(size){ document.getElementById('zoom').style.fontSize=size+'px'; } </script> </head> <body> <p>字体:<A href="javascript:doZoom(18)">大</A> <A href="javascript:doZoom(14)">中</A> <A href="javascript:doZoom(12)">小</A> <div id="zoom" style="font-size:14px;"> <p>字字字字字字字字字字字字字字字字</p> </div> </body> </html>
 提示:您可以先修改部分代码再运行
我想要一个  当显示的是大字体时   那个大字 就变个状态 和中小两字不一样  三个反之

[ 本帖最后由 llqfront 于 2010-9-29 13:34 编辑 ]

作者: llqfront   发布时间: 2010-09-29

这个也不错了

作者: shidapinpai   发布时间: 2010-09-29

是不错了  可是客户想要  大 中 小  改变样式   弄不出来了

作者: llqfront   发布时间: 2010-09-29