要不试一下这个?放在加载结束后事件中:



var box1 = document.getElementsByClassName("fr-sheetbutton-middlepart")[0] ; // 对第一个sheet页的名称进行变更
var box2 = document.getElementsByClassName("fr-sheetbutton-middlepart")[1] ; // 对第一个sheet页的名称进行变更
//鼠标点击sheet1时触发事件
box1.onmousedown = function(){
box1.style.cssText = "font-size : 15px ; color : blue";
box2.style.cssText = "font-size : 6px ; color : black";
}
//鼠标点击sheet2时触发事件
box2.onmousedown = function(){
box1.style.cssText = "font-size : 6px ; color : black";
box2.style.cssText = "font-size : 15px ; color : blue";
}