加入收藏 设为首页 联系站长
WEB2.0教程 | CSS教程 | HTML教程 | 设计素材 | CSS 模板 | CSS酷站欣赏 | CSS布局实例 | Javascript | 建站代码 | 专业软件 | 常见问题 | 内容搜索
>首页 -> 资源下载 -> 常用建站代码

TOP

字体大小缩放代码

[ 录入者:ahwdc | 时间:2008-01-04 10:45:05 | 作者: | 来源: | 浏览:59次 ]

字号缩放代码

''''zoom'''').style.fontSize=size+''''px''''中的双引号改为单引号

<!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" xml:lang="en" lang="en">
<head>
<title></title>
<script type="text/javascript">
function doZoom(size)
{document.getElementById(''''zoom'''').style.fontSize=size+''''px'''';}
</script>
</head>
<body>
<span id="zoom">需要指定大小的文字</span>
<a href="javascript:doZoom(16)" _fcksavedurl="javascript:doZoom(16)">大</a> <a href="javascript:doZoom(14)" _fcksavedurl="javascript:doZoom(14)">中</a> <a href="javascript:doZoom(12)" _fcksavedurl="javascript:doZoom(12)">小</a>
</body>
</html>

[上一篇]大幅商品展示广告代码 [下一篇]可控制的3屏轮换代码

评论

称  呼:
内  容:

相关栏目

最新文章

热门文章

推荐文章

相关文章

推荐浏览

中国百度网
安徽皖一月嫂家政
犯罪现场