Commit bc595b88 authored by wuxiaoli's avatar wuxiaoli

111

parent 4b78d519
......@@ -266,7 +266,7 @@
<div class="gundon_shuju_zt">用户订单展示</div>
</div>
<div>
<ul class="ul_title">
<ul class="ul_title" id="searchBar">
<li class="id" style="width: 10%;">订单ID</li>
<li class="nickname" style="width: 10%;">用户姓名</li>
<li class="mobile" style="width: 10%;">手机号</li>
......@@ -531,6 +531,23 @@
}
return init;
}();
window.onload=function(){
var oDiv = document.getElementById("searchBar"),
H = 0,
Y = oDiv
while(Y){
H += Y.offsetTop;
Y = Y.offsetParent;
}
window.onscroll = function(){
var s = document.body.scrollTop || document.documentElement.scrollTop;
if(s>H){
oDiv.style = "position:fixed;top:0;left:0.4%;right:0;"
}else{
oDiv.style = ""
}
}
};
// function range(min, max) {
// return 1
// //return parseInt(Math.random() * (max - min + 1) + min)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment