Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/456.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/225.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何更改DataTables中分页按钮的默认悬停样式_Javascript_Jquery_Html_Css_Datatables - Fatal编程技术网

Javascript 如何更改DataTables中分页按钮的默认悬停样式

Javascript 如何更改DataTables中分页按钮的默认悬停样式,javascript,jquery,html,css,datatables,Javascript,Jquery,Html,Css,Datatables,有人能帮我更改/删除DataTables中分页按钮的黑色背景色吗。我问了这么多问题,但没有得到任何帮助。我只是不想在悬停时显示颜色的变化分页按钮更改按钮的颜色,但不更改背景颜色。我甚至试过按一下按钮,但是运气不好。我真的不知道还能做什么 JQuery var table = $('#esignTable').DataTable({"sDom": '<"top"flp>rt<"bottom"i><"clear">', pagingType: 'input',

有人能帮我更改/删除DataTables中分页按钮的黑色背景色吗。我问了这么多问题,但没有得到任何帮助。我只是不想在悬停时显示颜色的变化<代码>分页按钮更改按钮的颜色,但不更改背景颜色。我甚至试过按一下按钮,但是运气不好。我真的不知道还能做什么

JQuery

var table = $('#esignTable').DataTable({"sDom": '<"top"flp>rt<"bottom"i><"clear">',
  pagingType: 'input',
  pageLength: 5,
  language: {
    "sEmptyTable": " ",
    oPaginate: {
        "sNext": '<img src="../images/integration/SlowRight.jpg">',
        "sPrevious": '<img src="../images/integration/SlowLeft.jpg">',
        "sFirst": '<img src="../images/integration/FastLeft.jpg">',
        "sLast": '<img src="../images/integration/FastRight.jpg">',
    }
  }   
}); 

谢谢

请尝试
块中的代码:

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
      background: none;
      color: black!important; /*change the hover text color*/
    }


    /*below block of css for change style when active*/

    .dataTables_wrapper .dataTables_paginate .paginate_button:active {
      background: none;
      color: black!important;
    }
运行下面的示例以获得结果。
$(文档).ready(函数(){
$('#示例')。数据表({
“pagingType”:“完整编号”
});
});

.dataTables_包装。dataTables_分页。分页按钮:悬停{
背景:无;
颜色:黑色!重要;
/*更改悬停文本的颜色*/
}
/*在css块下方,用于在激活时更改样式*/
.dataTables_包装。dataTables_分页。分页按钮:活动{
背景:无;
颜色:黑色!重要;
}
名称
位置
办公室
年龄
开始日期
薪水
名称
位置
办公室
年龄
开始日期
薪水
老虎尼克松
系统架构师
爱丁堡
61
2011/04/25
$320,800
加勒特温特斯
会计
东京
63
2011/07/25
$170,750
阿什顿考克斯
初级技术作者
旧金山
66
2009/01/12
$86,000
塞德里克·凯利
高级Javascript开发人员
爱丁堡
22
2012/03/29
$433,060
佐藤航空
会计
东京
33
2008/11/28
$162,700
布里尔·威廉姆森
集成专家
纽约
61
2012/12/02
$372,000
赫罗德·钱德勒
营业员
旧金山
59
2012/08/06
$137,500
罗娜·戴维森
集成专家
东京
55
2010/10/14
$327,900
科琳赫斯特
Javascript开发人员
旧金山
39
2009/09/15
$205,500
索尼娅·弗罗斯特
软件工程师
爱丁堡
23
2008/12/13
$103,600
杰娜·盖恩斯
办公室经理
伦敦
30
2008/12/19
$90,560
奎因·弗林
支撑导线
爱丁堡
22
2013/03/03
$342,000
查尔德·马歇尔
区域主任
旧金山
36
2008/10/16
$470,600
海莉·肯尼迪
高级市场设计师
伦敦
43
2012/12/18
$313,500
塔蒂亚娜·菲茨帕特里克
区域主任
伦敦
19
2010/03/17
$385,750
迈克尔·席尔瓦
营销设计师
伦敦
66
2012/11/27
$198,500
柏德
首席财务官(CFO)
纽约
64
2010/06/09
$725,000
格洛丽亚·利特尔
系统管理员
纽约
59
2009/04/10
$237,500
布拉德利·格里尔
软件工程师
伦敦
41
2012/10/13
$132,000
戴里奥斯
人事领导
爱丁堡
35
2012/09/26
$217,500
杰内特·考德威尔
开发领导
纽约
30
2011/09/03
$345,000
尤里浆果
首席营销官(CMO)
纽约
40
2009/06/25
$675,000
凯撒万斯
售前支持
纽约
21
2011/12/12
$106,450
多丽丝·怀尔德
营业员
西德尼
23
2010/09/20
$85,600
当归
首席执行官(CEO)
伦敦
47
2009/10/09
$1,200,000
加文·乔伊斯
开发商
爱丁堡
42
2010/12/22
$92,575
张珍妮弗
区域主任
新加坡
28
2010/11/14
$357,650
布伦登·瓦格纳
软件工程师
旧金山
28
2011/06/07
$206,850
菲奥娜绿色
首席运营官(COO)
旧金山
48
2010/03/11
$850,000
寿伊图
区域营销
东京
20
2011/08/14
$163,000
米歇尔之家酒店
集成专家
西德尼
37
2011/06/02
$95,400
苏基伯克斯
开发商
伦敦
53
2009/10/22
$114,500
普雷斯科特·巴特利特
技术作者
伦敦
27
2011/05/07
$145,000
加文·科尔特斯
队长
旧金山
22
2008/10/26
$235,500
马蒂娜·麦克雷
售后支持
爱丁堡
46
2011/03/09
$324,050
统一管家
营销设计师
旧金山
47
2009/12/09
$85,675
霍华德·哈特菲尔德
办公室经理
旧金山
51
2008/12/16
$164,500
希望富恩特斯
秘书
旧金山
41
2010/02/12
$109,850
维维安·哈雷尔
财务总监
旧金山
62
2009/02/14
$452,500
蒂莫西·穆尼
办公室经理
伦敦
37
2008/12/11
$136,200
杰克逊·布拉德肖
经理
纽约
65
2008/09/26
$645,750
梁丽薇
支持工程师
新加坡
64
2011/02/03
$234,500
布鲁诺·纳什
软件工程师
伦敦
38
2011/05/03
$163,5
    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
      background: none;
      color: black!important; /*change the hover text color*/
    }


    /*below block of css for change style when active*/

    .dataTables_wrapper .dataTables_paginate .paginate_button:active {
      background: none;
      color: black!important;
    }
<style>
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: none;
  color: black!important;
  /*change the hover text color*/
}


/*below block of css for change style when active*/

.dataTables_wrapper .dataTables_paginate .paginate_button:active {
  background: none;
  color: black!important;
}
</style>
  .dataTables_wrapper .page-item.active .page-link {

        background-color: #4f93ce;
        border: 1px solid #4f93ce;
    }