用js判断$("子页面元素id").onclick=function () {parent.$("父页面元素id").className = "样式";}
感谢,我是这么写的$("#"+data,window.parent.document).addClass("hover");实在你的启发之下