码迷,mamicode.com
首页 > 其他好文 > 详细

更改datatables的分页切换时的'processing'提示信息的式样

时间:2017-06-27 10:04:48      阅读:630      评论:0      收藏:0      [点我收藏+]

标签:jquer   切换   rgb   jquery   code   callback   nbsp   display   near   

jquery.dataTables.css

.dataTables_wrapper .dataTables_processing {
  position: absolute;
  top: 50%;
  left: 50%;
/*   width: 100%; */
  width: 100px
  height: 40px;
  margin-left: -50%;
  margin-left: auto;
  margin-right: auto;
  margin-top: -25px;
  padding-top: 20px;
  text-align: center;
  font-size: 1.2em;
/*   background-color: #ccc; */
/*   background-color: white; */
/*   background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(25%, rgba(255, 255, 255, 0.9)), color-stop(75%, rgba(255, 255, 255, 0.9)), color-stop(100%, rgba(255, 255, 255, 0))); */
/*   background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); */
/*   background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); */
/*   background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); */
/*   background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); */
/*   background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); */
}
    function _fnProcessingDisplay ( settings, show )
    {
        if ( settings.oFeatures.bProcessing ) {
//            console.log("settings.aanFeatures.r="+settings.aanFeatures.r);
            $(settings.aanFeatures.r).css( ‘display‘, show ? ‘block‘ : ‘none‘ );
//            $(settings.aanFeatures.r).css( "background-color","#ccc");
//            $(settings.aanFeatures.r).width("100px");
        }
    
        _fnCallbackFire( settings, null, ‘processing‘, [settings, show] );
    }

 

更改datatables的分页切换时的'processing'提示信息的式样

标签:jquer   切换   rgb   jquery   code   callback   nbsp   display   near   

原文地址:http://www.cnblogs.com/zhao1949/p/7083245.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!