CINXE.COM

最新镍年均价榜单行情_镍价格榜单_CBC金属网

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>最新镍年均价榜单行情_镍价格榜单_CBC金属网</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/> <meta name="description" content="CBC金属镍网每年根据发布镍最新价格价格行情编制镍年均价榜单,镍年榜单行情走势图,每天及时更新原创镍榜单信息!让您及时看清市场,把握机遇。"/> <meta name="keywords" content="镍榜单,镍价格榜单,镍年价格榜单"/> <link href="//cj.cbcie.com/css/body.css" rel="stylesheet" /> <link href="//cj.cbcie.com/css/listart_common.css" rel="stylesheet" /> <style type="text/css"> .menutree{float:left; padding:0 0 20px 0; width:360px;background:#fff; } .hotpro{width:360px;float:left;border-bottom:2px solid #2071C2;background:#FBFBFB;} .hotpro span{float:left;padding:0 15px;height:50px;line-height:50px;text-align:left;font-size:18px;} .hotpro span a{color:#333;} .hotpro span a:hover{color:#D7000F;text-decoration:none;} .hotpro span.active{background:#D7000F;} .hotpro span.active a{color:#fff;} .hotpro span.active a:hover{color:#fff;text-decoration:none;} .menutree ul{float:left;padding:10px 0 0 10px;} .menutree li {width: 330px;text-align: left;float: left;height: 32px;line-height: 32px;overflow: hidden;padding-left:10px;} .menutree .dot{display: inline-block;margin-right:10px; width: 6px;height: 6px;background-color: #bbb;vertical-align: middle;border-radius: 50%;} .menutree .split{ width:5px; min-height:200px; height:100%; position:absolute; z-index:9; right:0; top:0; background:#F0F0F0; cursor:e-resize;} .menutree li:hover{background: #D7000F !important; float: left; color: #fff !important;} .menutree li.active{background: #1B91E3 !important; float: left; color: #fff !important;} .menutree li:hover a,.menutree li.active a{width:100%;float: left;color: #fff !important;} .menutree li:hover a:hover,.menutree li.active a:hover{width:100%;float: left;color: #fff !important;} .rightpart { /*width: 900px;*/ float: left;background:#fff;margin:0 0 0 24px; } .rightpart .topsearmenu { width: 730px; padding: 0 10px; float: left; } .content { width: 786px; padding: 20px 20px 0; float: left; position: relative; } .tabinfo { margin: 0 auto; clear: both; table-layout: fixed; background: #fff; } .tabinfo td { height: 32px; background: #fff; font-size: 14px; color: #333; table-layout: fixed;white-space:nowrap; } .talign{text-align:right;padding-right: 5px;} .talign span{vertical-align:middle;} .talign span:nth-child(2){font-size:1px;margin-left:2px;} .head { width: 786px; margin: 0 auto; clear: both; table-layout: fixed; } .head td { background: #2071C2; color: #fff; table-layout: fixed;white-space:nowrap;height:35px; } .tabbc td { background:#f5f5f5;table-layout: fixed;white-space:nowrap; }/*#EAEDF5*/ .tddate { width: 100px; } .scrollhead { position: fixed; top: 0; width: 800px; float:left;padding-left:20px; } /*表格滑动效果*/ .datacont:hover td { background: #FF822C; color: #fff; cursor:pointer; } .datacont:hover td a{color:#fff;} .datacont:hover td a:hover{color:#bc2931;text-decoration:underline;} .datacont.active td { background: #FF822C; color: #fff; cursor:pointer; } .dwarea { width: 150px; float: left; padding: 10px 0;text-align: left; } /*.dwarea .inputdown { width: 200px; height: 30px; line-height: 30px; background-color:#ED8400; color: #fff; font-size: 14px; font-family: "微软雅黑"; border: 1px solid #ED8400; border-radius: 4px; cursor: pointer;}*/ /*.dwarea .inputdown:hover { background-color: #FF822C; }*/ /* 2021-12-30新增CSS 包括顶部banner,侧边nav*/ .Price_banner {position: relative;width: 100%;height: 394px;overflow: hidden;} .Price_banner .PY_bannerimg{background: url(//image.cbcie.com/smallimg/blank.gif) no-repeat center center;background-size: cover;position: absolute;left: 0;top: 0;width: 100%;height: 100%;} .Price_bannerwz {position: absolute;top: 80px;left: 50%;transform: translateX(-50%);} .Price_bannerwz h1 {font-size: 52px;font-weight: bold;color: #FFFFFF;} .Price_bannerwz .nian1 {color: #006177;text-shadow: 1px 1px 0 #fff;position: relative;z-index: 2;} .Price_bannerwz .nian2 {z-index: 1;position: absolute;top: 2px;left: 2.2px;color: rgba(0, 97, 119, 0.3);filter: blur(0.5px);} .Price_bannerwz .hr {margin: 19px auto 18px;width: 338px;height: 3px;background: #FFFFFF;box-shadow: 3px 3px 0px 0px rgb(23 130 221 / 30%);} .Price_bannerwz .jgqs {font-size: 24px;color: #FFFFFF;font-weight: 500;line-height: 35px;} .Price_bannerwz .bottomwz {width: 322px;height: auto;text-align: center;margin: 0 auto;background: url(//image.cbcie.com/ljian/price/banner-box.png) no-repeat;background-size: contain;} .bottomwz p {font-size: 21px;font-weight: 500;line-height: 47px;color: #006177;} .Price_aside {float:left;vertical-align: top;margin-top: 20px;/*margin-right: 20px;*/width: 190px;background: #FFFFFF;} .Price_aside .aside_title {width: 100%;height: 50px;background: #265AA3;} .aside_title h2 {font-size: 16px;font-weight: bold;color: #FFFFFF;line-height: 50px;} .aside_nav ul>li {padding: 0 15px;display: flex;justify-content: space-between;align-items: center;width: 160px;height: 40px;line-height: 40px;} .aside_nav li a{cursor: pointer;margin:0;font-size: 14px;font-weight: 400;color: #333333;width: 100%;text-align: left;} .aside_nav ul>li::after {content: url(//image.cbcie.com/ljian/price/list-li.png);width: 14px;height: 14px;} .aside_nav ul>li:hover,#aside_navul .active{background-color: #E98300;} .aside_nav ul>li:hover a,#aside_navul .active a{color: #FFF;} .dwarea .inputdown {cursor: pointer;margin-right: 20px;width: 100px;height: 40px;line-height: 40px;background: #E98300;border-radius: 4px;font-size: 14px;font-weight: bold;color: #FFFFFF;border: none;} .dwarea .inputdown:hover{opacity:0.9} .dwarea .inputdown:active{opacity:0.8} .head {height: 50px;} .head td{background: #265AA3;} .blank10{background: #f2f2f2;} /*.navhddh{width:1210px!important;height:2px!important;float:none!important;padding:0!important;display:block!important;margin:0 auto!important;}*/ </style> <script type="text/javascript" src="//cj.cbcie.com/js/jquery-1.7.2.js"></script> </head> <body style="background:#F2F2F2;"> <!--顶部--> <link href="//cj.cbcie.com/css/toplogin.css?v=5.2" rel="stylesheet" type="text/css" media="all" /> <link href="//cj.cbcie.com/css/foot_met.css?v=5.1" rel="stylesheet" type="text/css" media="all" /><div id="login_common"></div> <style type="text/css"> .hd_met li a { color: #606060; } </style> <script type="text/javascript" src="//cj.cbcie.com/js/uidialog/loadmetalmenu.js?ver=4"></script> <!--导航目录--> <style type="text/css"> .st { font-family:"宋体";} .blue_logo { background: url(//image.cbcie.com/logo/cbclogo0727.png) no-repeat; float: left; } .logo_wrap { width: 100%; background: #ffffff; clear: both; } .logo_wrap .logo_con { width: 1210px; height: 100px; margin: 0 auto; border-bottom: 2px solid #009bff; } .logo_wrap .logo_left { width: 500px; float: left; text-align: left; } .logo_wrap .logo_left .hd_logo { width: 140px; height: 56px; float: left; margin-top: 22px; } .logo_wrap .hd_line0 { height: 45px; border-left: 1px solid #ccc; float: left; margin: 25px 10px 0; } .logo_wrap .logo_left h2 { font-size: 22px; font-weight: normal; line-height: 92px; } .logo_wrap .logo_left h2 a { color: #575757; text-decoration: none; } .logo_wrap .logo_left h2 a:hover { color: #bc2931; text-decoration: none; } .logo_wrap .logo_left h2 a.spzq { color: #009bff; text-decoration: none; } .logo_wrap .logo_left h2 b { font-weight: normal; color: #575757; } .logo_wrap .logo_left p { font-size: 12px; font-weight: normal; color: #b1e8ff; } .logo_wrap .logo_right_menu { float: right; } .logo_wrap .logo_right_menu .sinfo { float: right; } .logo_wrap .logo_right_menu .sinfo a.my_shop { width: 150px; height: 35px; margin: 37px 0 0 20px; float: left; line-height: 35px; border: 1px solid #ca0a0a; border-radius: 4px; } .logo_right_menu ul li { float: left; margin-left: 25px; } .logo_right_menu ul li a { font-size: 18px; color: #666; line-height: 92px; } .logo_right_menu ul li a:hover { color: #FF8328; text-decoration: none; } </style> <div class="logo_wrap"> <div class="logo_con"> <div class="logo_left"> <a href="/" target="_blank" class="hd_logo blue_logo"></a> <span class="hd_line0"></span> <h2> <a href="/ni/index.html" title="中国镍网" target="_blank" class="spzq">中国镍网</a><b>&nbsp;</b> <a href="#" target='_blank'></a> </h2> </div> <div class="logo_right_menu"> <ul> <li><a href="/ni/price_phb.html" target="_blank">价格榜单</a></li> <li><a href="/ni/price_day/0.html" target="_blank">日价格汇总</a></li> <li><a href="/ni/price_week/0.html" target="_blank">周均价汇总</a></li> <li><a href="/ni/price_month/0.html" target="_blank">月均价汇总</a></li> <li><a href="/ni/price_year/0.html" target="_blank">年均价汇总</a></li> </ul> </div> </div> </div> <script type="text/javascript"> $(".logo_left").find("h2").find("a").eq(1).html("年均价汇总"); $(".logo_left").find("h2").find("a").eq(1).attr("href", "/ni/price_year/0.html"); </script> <!--主区域--> <div class="main"> <div class="Price_aside"> <div class="aside_title"> <h2>年均价汇总</h2> </div> <div class="aside_nav"> <ul id="aside_navul"> <li ><a href="/ni/price_year/13924.html"><span class="dot"></span>镍矿</a></li> <li ><a href="/ni/price_year/13927.html"><span class="dot"></span>电解镍</a></li> <li ><a href="/ni/price_year/9934.html"><span class="dot"></span>镍铁</a></li> <li ><a href="/ni/price_year/9896.html"><span class="dot"></span>硫酸镍</a></li> <li ><a href="/ni/price_year/9941.html"><span class="dot"></span>纯镍废料</a></li> </ul> </div> </div> <div class="rightpart" id="pricearea"> <div class="content" id="dvhtmlshow"> </div> <div class="scrollhead"></div> <div style="display:none;" class="copydata"></div> </div> </div> <div class="blank20"></div> <div class="f_line"></div> <div class="f_copyright"> <div class="f_bot"> <div class="f_bot_menu"> <ul style="width:1200px;"> <li><a href="https://www.cbcie.com/methodview" rel="nofollow" target="_blank" title="方法论">方法论</a></li> <li><a href="https://www.cbcie.com/apiserver" rel="nofollow" target="_blank" title="API服务">API服务</a></li> <li><a href="https://www.cbcie.com/server/index.html" rel="nofollow" target="_blank" title="产品服务">产品服务</a></li> <li><a href="https://institute.cbcie.com/demand" target="_blank" title="咨询服务">咨询服务</a></li> <li><a href="https://www.cbcie.com/help/index.html" rel="nofollow" target="_blank" title="帮助中心">帮助中心</a></li> <li><a href="https://www.cbcie.com/adserver" rel="nofollow" target="_blank" title="广告服务">广告服务</a></li> <li><a href="https://www.cbcie.com/qybjserver" rel="nofollow" target="_blank" title="企业报价">企业报价</a></li> <li><a href="https://www.cbcie.com/nfm/0/0/jylist.html" rel="nofollow" target="_blank" title="供求发布">供求发布</a></li> <li><a href="https://www.cbcie.com/about/contactus/index.html" rel="nofollow" target="_blank" title="联系我们">联系我们</a></li> <li><a href="https://www.cbcie.com/pay/pay.aspx" rel="nofollow" target="_blank" title="支付方式">支付方式</a></li> <li><a href="https://www.cbcie.com/cpk" rel="nofollow" target="_blank" title="产品库">产品库</a></li> <li><a href="https://www.cbcie.com/about/sitemap/index.html" target="_blank" title="网站地图">网站地图</a></li> <li style="padding-right:0;"><a href="https://www.cbcie.com/about/mianzeopen/index.html" rel="nofollow" target="_blank" title="免责声明">免责声明</a></li> </ul> </div> <div class="f_bot_bei" style="margin-bottom:40px;"> <p style="line-height:40px;">服务热线:15534057890 17335815486  邮箱:<a href="mailto:info@cbcie.com" rel="nofollow">info@cbcie.com</a><br /> 违法和不良信息举报电话:0351-7096171<br />版权所有:山西联知信息科技有限公司 Copyright CBC金属网 All Rights Reserved<br /><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=14010502050634"><img src="//image.cbcie.com/smallimg/gab.png" width="20" height="20" alt="ga" />晋公网安备 14010502050634号</a> <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">晋ICP备14004322号-2</a> 增值电信业务经营许可证:晋B2-20220200</p> </div> </div> </div> <div style="display:none;"> <script>(function () {var src = "https://jspassport.ssl.qhimg.com/11.0.1.js?d182b3f28525f2db83acfaaf6e696dba";document.write('<script src="' + src + '" id="sozz"><\/script>');})();</script> <script> var _hmt = _hmt || []; (function () { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?f6602e8f8ae81f664ab3005f275b8f5b"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <!--百度站长自动推送20200917--> <script>(function () {var bp = document.createElement('script');var curProtocol = window.location.protocol.split(':')[0];if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; }else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; }var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(bp, s);})();</script> </div> <style type="text/css"> .kfcontant { width: 100px; float: left; background: #fff; position: fixed; right: 20px; top: 30%; z-index: 99999; padding: 10px; border: 1px solid #ccc; border-radius: 5px; } .kfcontant p { clear: both; font-size: 12px; line-height: 20px; text-align: center; margin: 0; padding: 0; } </style> <div class="kfcontant"> <a href="javascript:;" onclick="javascript:$('.kfcontant').hide();" target="_self" style="position:absolute;z-index:200;right:0px;top:0;float:left;vertical-align:middle;"><img src="//image.cbcie.com/cssimg/kf_close.png" width="15" height="15" style="float:left;" alt="关闭"></a><img src="//image.cbcie.com/lzq/qywx/qywx_25_40434.png" width="100" height="100" alt="企业微信客服" style="padding-bottom:10px;"><p>客服经理:周雪婷</p><p>15534057890</p> </div> <script type="text/javascript"> setTimeout(function () { var kfimg = $(".kfcontant").find("img").eq(1).attr("src"); $(".other_ser_con").find("li").find("img").eq(2).attr("src", kfimg); }, 1000); </script> <script type="text/javascript" src="//cj.cbcie.com/js/loadlogin.js?ver=21"></script><!--右下角返回顶部--> <ul class="cbc_servui" style="bottom:95px;"> <li class="cbc_wxapp"> <div class="icpic"> <img src="//image.cbcie.com/smallimg/WeChat.png" width="30" height="24" alt="wx" style="padding:9px 0 0;" /> <p>CBC<br />服务</p> </div> <div class="iccode"> <img src="https://image.cbcie.com/ljian/ewm/cbc_gzh.png" width="96" height="96" alt="CBC服务号" /> <p>微信扫一扫关注</p> </div> </li> <li class="cbc_wxapp"> <div class="icpic"> <img src="//image.cbcie.com/smallimg/cbcapp.png" width="30" height="12" alt="app" style="padding:15px 0 0;" /> <p><a href="https://cs.cbcie.com/app/appdown.html" target="_blank"><font color="#fff">APP<br />下载</font></a></p> </div> <div class="iccode"> <img src="https://image.cbcie.com/ljian/ewm/cbc_app.png" width="96" height="96" alt="CBC手机APP" /> <p>CBC手机APP下载</p> </div> </li> <li class="cbc_scro_top" id="scroll-top" style="display: none;" rol="body"> <div class="icon icon04" onclick="window.scrollTo(0, 0);return false;">返回<br />顶部</div> </li> </ul> <div class="ol_service"> <div style="float:left;position:relative;z-index:100;"> <a href="javascript:;" target="_self" id="onlinekfget"><img src="//image.cbcie.com/smallimg/sqkf_156.png" width="156" height="62" alt="CBC在线客服" /></a> <a href="javascript:;" onclick="javascript:$('.ol_service').hide();" target="_self" style="position:absolute;z-index:200;right:2px;top:2px;float:left;vertical-align:middle;"><img src="//image.cbcie.com/cssimg/kf_close.png" width="15" height="15" alt="关闭" /></a> <!--<div style="position: absolute; z-index: 200; left:-120px; top:-40px; float: left; vertical-align: middle;padding:10px;background:#fff;display:none;" id="getkfewm"></div>--> </div> </div> <div class="demand_service" style="width: 162px; height: 72px; float: left; position: fixed; left: 20px; bottom: 170px; z-index: 99999;"> <div style="float:left;position:relative;z-index:100;"> <a href="https://institute.cbcie.com/demand" target="_blank"><img src="https://image.cbcie.com/ljian/ggfw/zxfw_158_70.png" width="158" height="70" alt="CBC专家咨询" /></a> <a href="javascript:;" onclick="javascript: $('.demand_service').hide();" target="_self" style="position:absolute;z-index:200;right:2px;top:5px;float:left;vertical-align:middle;"><img src="https://image.cbcie.com/ljian/ggfw/zxfw_close.png" width="20" height="20" alt="关闭" /></a> </div> </div> <div class="report_order" style="width: 158px; height: 130px; float: left; position: fixed; left: 20px; bottom: 20px; z-index: 99999;"> <div style="float:left;position:relative;z-index:100;"> <a href="https://www.cbcie.com/report" target="_blank"><img src="https://image.cbcie.com/ljian/report/report_158130.png" width="158" height="130" alt="2025-2030年报预订"></a> <a href="javascript:;" onclick="javascript: $('.report_order').hide();" target="_self" style="position:absolute;z-index:200;right:0px;top:0px;float:left;vertical-align:middle;"><img src="https://image.cbcie.com/ljian/report/report_2020.png" width="20" height="20" alt="关闭"></a> </div> </div> <script type="text/javascript" src="//cj.cbcie.com/js/bd_onlineservice.js?ver=1"></script> <script type="text/javascript"> $(".cbc_wxapp").each(function () { $(this).hover(function () { $(this).find(".icpic").find("img").hide(); $(this).find(".icpic").find("p").show(); $(this).find(".iccode").show(); }, function () { $(this).find(".icpic").find("img").show(); $(this).find(".icpic").find("p").hide(); $(this).find(".iccode").hide(); }); }); $("#onlinekfget").click(function () { BDservice(); }); //$("#onlinekfget").hover(function () { // $("#getkfewm").show(); //}, function () { $("#getkfewm").hide(); }) $(function () { var tcScrollTop = 0; var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; function getScrollTop() { if (document.documentElement && document.documentElement.scrollTop) { tcScrollTop = document.documentElement.scrollTop; } else if (document.body) { tcScrollTop = document.body.scrollTop; } return tcScrollTop; } $(window).scroll(function () { getScrollTop(); if (tcScrollTop > 500) { $("#scroll-top").show(); } else { $("#scroll-top").hide(); } }); /////加载客服二维码 //$.ajax({ // url: '/html/logincraency.ashx', // type: "post", // data: "command=getRandKfpic", // dataType: "text", // success: function (result) { // if (result != "") { // $("#getkfewm").html("<img src='" + result + "' width='100' height='100' alt=''/>"); // } // }, // error: onerror //}); }) </script> <script type="text/javascript" src="//cj.cbcie.com/js/webhead/viewlogin.2.0.js"></script> <script type="text/javascript"> //登录 $(this).cbc_top_login({met_en:"ni"}); </script> <script type="text/javascript" src="//cj.cbcie.com/js/tablesort.js"></script> <script type="text/javascript"> function replaceCont(s) { var str = ""; if ($.trim(s) != "") str = s.replace(/<[^>]*>/g, "").replace(/,/g, ",").replace("&nbsp;", ""); return str; } function replaceTrCont(s) { var str = ""; if ($.trim(s) != "") str = s.replace(/,/g, ",").replace(/<\/(tr|TR)>/g, "||").replace(/<\/(td|TD)>/g, ",").replace(/<[^>]*>/g, "").replace(/&nbsp;/g, "").replace(/\s/g, ""); return str; } function onerror(error) { alert(error.get_message()); } </script> <!--加载内容表头--> <script type="text/javascript"> var topbannerstr = "<div class=\"Price_banner\">"+ " <div class=\"PY_bannerimg ly_back\" data-original=\"//image.cbcie.com/ljian/price/pybanner.png\"></div>"+ " <div class=\"Price_bannerwz\">"+ " <h1>【CBC<div style=\"position: relative;display: inline-block;\"><span class=\"nian1\">年</span><span class=\"nian2\">年</span></div>度价格汇总】</h1>"+ " <div class=\"hr\"></div>"+ " <p class=\"jgqs\">年度价格涨跌 未来行情研判</p>"+ " <div class=\"bottomwz PY_bottomwz\">"+ " <p>滚动刷新 持续关注</p>"+ " </div>"+ " </div>"+ "</div>"; $('.logo_wrap').after(topbannerstr); var productid_small=""; //数据内容表头 <td> 产地 </td><td> 交易地 </td><td> 价格类型 </td><td> 付款方式 </td><td> 报价机构 </td> var tableHead = "<table cellspacing=\"1\" cellpadding=\"1\" class=\"tabinfo\" id=\"datatable\"><tr class=\"head\">"+ "<td class=\"tddate\">日期</td><td> 地区 </td><td> 品名 </td>" + "<td> 指标 </td><td> 价格 </td><td> 单位 </td><td> 涨跌额 </td><td> 涨跌幅(%) </td><td> 价格类型 </td><td> 付款方式 </td><td> 走势图 </td><td> 历史价格 </td>" + "</tr>"; //加载数据 function loadData(psmallid) { $("#dvhtmlshow").html("<img src='//image.cbcie.com/smallimg/load_31.gif' alt=''/>"); $.ajax({ url: '/price/showprice.ashx', type: "post", data: "command=getPriceYear&pro_small=" + psmallid + "&productid=13923&metaltype=ni&webtypename=年价格&date=", dataType: "text", success: onGetData, error: onerror }); } ///加载指定id今日价格数据 function onGetData(result) { if (result != "") { if (result == "false") { $("#dvhtmlshow").html(""); } else { var dwbtn = "<div class=\"dwarea\"><input name=\"downinfo\" class=\"inputdown bgExcel\" type=\"button\" value=\"下载数据\"/></div>"; $("#dvhtmlshow").html(tableHead + result + "</table>" + dwbtn); //如果价格列不显示值,列不加排序 var pricecol_txt=$(".datacont").eq(0).find("td").eq(5).text(); //表格排序 if (pricecol_txt.indexOf("请登录") != -1 || pricecol_txt.indexOf("*") != -1) $("#dvhtmlshow").tablesort({ headclass: "tabinfo", contclass: "tabinfo", sortcols: [0, 2, 3], sorttypes: [1, 1, 1], beginrows: 1, headtd_hoverfontcolor: "#ccc" }); else $("#dvhtmlshow").tablesort({ headclass: "tabinfo", contclass: "tabinfo", sortcols: [0, 2, 3, 4, 6, 7], sorttypes: [1, 1, 1, 0, 0, 0], beginrows: 1, headtd_hoverfontcolor: "#ccc" }); //设置右侧区域宽,跟随表格宽度走 var tab_wd = $("#datatable").width(); if (tab_wd > 786) { $(".main").width(1210 + (tab_wd - 786)); $("#dvhtmlshow").width(tab_wd); } var head_top = $("#dvhtmlshow").position().top; $(window).scroll(function () { var scroll_top = getScrollRightTop(); if (head_top <= scroll_top) { //$(".head").css({ "position": "fixed", "top": "0" }); var t_hd = ""; for (var k = 0; k < $("#datatable").find(".head").find("td").length; k++) { var st = $("#datatable").find(".head").find("td").eq(k); if (k == 0) t_hd += "<td class='tddate' style='width:" + st.width() + "px;'>" + st.html() + "</td>"; else t_hd += "<td style='width:" + st.width() + "px;'>" + st.html() + "</td>"; } $(".scrollhead").html("<table cellspacing=\"1\" cellpadding=\"1\" class=\"tabinfo\" style=\"width:" + tab_wd + "px;\"><tbody><tr class=\"head\">" + t_hd + "</tr></table>").show(); } else { $(".scrollhead").hide(); } }); //下载数据 $("input[name='downinfo']").live("click", function () { var strhtml = ""; var hd = ""; //表内容 if ($("#datatable").length > 0) { $(".copydata").html($("#datatable").html()); $(".copydata").find(".head").each(function () { $(this).remove(); }); strhtml = replaceTrCont($(".copydata").html()); for (var k = 0; k < $("#datatable").find(".head").length; k++) { for (var m = 0; m < $("#datatable").find(".head").eq(k).find("td").length; m++) { var st = $("#datatable").find(".head").eq(k).find("td").eq(m); var csssx = ""; if (typeof (st.attr("colspan")) != "undefined") csssx += "@" + st.attr("colspan"); else csssx += "@"; if (typeof (st.attr("rowspan")) != "undefined") csssx += "@" + st.attr("rowspan"); else csssx += "@"; hd += replaceTrCont(st.html()) + csssx + ","; } hd += "||"; } strhtml = strhtml.replace(/#/g, "#"); } $.ajax({ url: '/price/showprice.ashx', type: "post", data: "command=priceDownExcel&head=" + hd + "&cont=" + strhtml + "&type=&tab=年价格&productid=13923", dataType: "text", success: function (result) { if (result != "") { window.location.href = "/upfile/csv/" + result; } }, error: onerror }); }); } }//如果无表格内容,取表头 else $("#dvhtmlshow").html(tableHead + result + "</table>"); } function getScrollRightTop() { return document.documentElement.scrollTop + document.body.scrollTop; } $(document).ready(function () { //默认点击第一个 if ("0" != "0") { productid_small = "0"; window.scrollTo(0, $("#pricearea").offset().top); } else { productid_small = $(".aside_nav").find("ul").find("li").eq(0).find("a").attr("href").replace("/ni/price_year/", "").replace(".html", ""); $(".aside_nav").find("ul").find("li").eq(0).addClass("active"); } if (productid_small!="") loadData(productid_small); }); </script><script type="text/javascript" src="//cj.cbcie.com/js/lazyload/lazy.min.1.9.js"></script> <script type="text/javascript"> $(function () { $('img.lyad').lazyload({ effect: 'fadeIn' }); $("div.ly_back").lazyload({ effect: 'fadeIn' }); }); </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10