document.write(date1.fontsize(2));
document.write(date2.fontsize(2));
document.write("<span id=\'clock\'></span>");
->
document.write("<span style='font-size:12px'>"+date1+"</span>");
document.write("<span style='font-size:12px'>"+date2+"</span>");
document.write("<span style='font-size:12px' id=\'clock\'></span>");
document.write(date2.fontsize(2));
document.write("<span id=\'clock\'></span>");
->
document.write("<span style='font-size:12px'>"+date1+"</span>");
document.write("<span style='font-size:12px'>"+date2+"</span>");
document.write("<span style='font-size:12px' id=\'clock\'></span>");
你用样式表 把大小 用pixel定好就可以了啊
直接写
<style>
body{
font-size: 12px;}
<style>
就不会变大变小了
body{
font-size: 12px;}
</style>
定义了body的字体大小为12象素