写代码测试一下:

<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 ></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>


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

 

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

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-01-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2022-03-07
  • 2021-11-18
  • 2022-12-23
相关资源
相似解决方案