element的滚动去掉横向_【请教高手】在页面下面出现横向滚动条,如何去掉??

kefu=function(id,_top,_right){varme=id.charAt?document.getElementById(id):id,d1=document.body,d2=document.documentElement;me.style.top=_top?_top+'px':0;me.style.right=_ri...

kefu=function (id,_top,_right){

var me=id.charAt?document.getElementById(id):id, d1=document.body, d2=document.documentElement;

me.style.top=_top?_top+'px':0;

me.style.right=_right+"px";

me.style.position='absolute';

setInterval(function (){

me.style.top=parseInt(me.style.top)+(Math.max(d1.scrollTop,d2.scrollTop)+_top-parseInt(me.style.top))*0.1+'px';},10+parseInt(Math.random()*20));

return arguments.callee;

};

window.οnlοad=function (){

kefu('xixi',100,-129)

}

lastScrollY=0;

var InterTime = 1;

var maxWidth=-1;

var minWidth=-129;

var numInter = 8;

var BigInter ;

var SmallInter ;

var o = document.getElementById("xixi");

var i = parseInt(o.style.left);

function Big()

{

if(parseInt(o.style.right)

{

i = parseInt(o.style.right);

i += numInter;

o.style.right=i+"px";

if(i==maxWidth)

clearInterval(BigInter);

}

}

function toBig()

{

clearInterval(SmallInter);

clearInterval(BigInter);

BigInter = setInterval(Big,InterTime);

}

function Small()

{

if(parseInt(o.style.right)>minWidth)

{

i = parseInt(o.style.right);

i -= numInter;

o.style.right=i+"px";

if(i==minWidth)

clearInterval(SmallInter);

}

}

function toSmall()

{

clearInterval(SmallInter);

clearInterval(BigInter);

SmallInter = setInterval(Small,InterTime);

}

//==========html============//

//==========css============//

html{width:100%;border:1px soid #000; background:#666;}

#xixi .kf{float:right;width:129px;height:380px;background:#CCC;}

.Obtn {

MARGIN-TOP: 104px; WIDTH: 32px; BACKGROUND: url(../images/img3-5_1.png) no-repeat; FLOAT: left; HEIGHT: 139px; MARGIN-LEFT: -5px;border:1px solid red;

}

* HTML .Obtn {

FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../images/img3-5_1.png",sizingMethod='crop'); WIDTH: 32px; BACKGROUND: none transparent scroll repeat 0% 0%; FLOAT: left; HEIGHT: 139px

}

* + HTML .Obtn {

MARGIN-TOP: 104px; WIDTH: 32px; BACKGROUND: url(../images/img3-5_1.png) no-repeat; FLOAT: left; HEIGHT: 139px; MARGIN-LEFT: -5px

}

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值