帖子
帖子
用户
博客
课程
显示全部楼层
11
帖子
0
勋章
130
Y币

[其他] onclick事件点击时更改样式无效

[复制链接]
发表于 2018-3-26 14:16:04
在onclick点击事件里修改样式,当不用api.openFrame()时正常,但当使用时样式无效果;代码如下:active是样式
  1. <td tapmode="active" onclick="fn()">{{=it.student_detail[i].score}}</td>
  2.   function fn(){
  3.       api.parseTapmode();
  4.       api.openFrame({
  5.           name: 'testStudentsCompleteDetail',
  6.           url: './testStudentsCompleteDetail.html',
  7.           rect: {
  8.             x: 10,
  9.             y: 62,
  10.             w: api.winWidth-18,
  11.             h: api.winHeight-120
  12.           },
  13.           pageParam: {
  14.               userid:userid,
  15.               task_id:api.pageParam.task_id,
  16.               file_name: api.pageParam.file_name,
  17.               class_name:class_name,
  18.               name:name,
  19.               number:number
  20.           },
  21.           bounces: true,
  22.           bgColor: 'rgba(0,0,0,0)',
  23.           vScrollBarEnabled: true,
  24.           hScrollBarEnabled: true
  25.       });

  26.     };
复制代码

4
帖子
0
勋章
3524
Y币
起别的ID修改样式吧
您需要登录后才可以回帖 登录

本版积分规则