想点击后改变当前页签字体颜色,在帮助文档里找到这一段代码
$('.fr-sheetbutton-container-active .fr-sheetbutton-middlepart').css('color', 'red');
$('.fr-sheetbutton-container').bind('click', function() {
$('.fr-sheetbutton-container-active .fr-sheetbutton-middlepart').css('color', 'red');
$('.fr-sheetbutton-container:not(.fr-sheetbutton-container-active) .fr-sheetbutton-middlepart').css('color', 'black');
});
当页签在下方的时候,代码生效,
当页签在上方的时候,代码不生效,请问这个该怎么处理?