在HTML中,标记<font>的Size属性最大取值

写代码测试一下:

<script type="text/javascript">
	function test(){
		var str = "";
		for(var i = 1; i <= 10; i++){
			str += "<font size=" + i +" >"+ i +" </font>";
			fontest.innerHTML = str;
		}
	}
</script>

 

<body onload="test()">
	<div id="fontest"></div>
	
	<font size="6">Google</font>
	<font size="5">Google</font>
	<font size="4">Google</font>
	<font size="3">Google</font>  <!-- 默认大小为3 -->
	<font size="2">Google</font>
	<font>Google</font>           <!-- 此为默认,和上面的size=3 字体是一样大的 -->
</body>


 

所以:<font>的Size属性最大取值为7,默认为3

posted on 2013-05-28 13:42  itmyhome  阅读(1241)  评论(0编辑  收藏  举报

导航