本文介绍了滚动条经常出现,当我将鼠标移到某些特定的Div上时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



滚动条经常出现,而我鼠标悬停在一些特定的div上,但我已经检查过其他屏幕没有问题,因为我看到了,所以任何人都可以帮我解决这个问题



提前谢谢



Velsamy

Dear all,

scroll bar is coming often , while i mouse over on some specific div, but i have checked with other screens there is no problem as i seen, so anyone could help me to solve this

thanks in advance

Velsamy

推荐答案

// set the body's height to be the 100 less than the screen's height..
document.getElementById("body").style.height = screen.height - 100;





..或者你可以使用CSS解决这个问题,你可以确保在任何悬停事件(鼠标悬停)上对象的大小不会改变。



..or you can use the CSS to tackle this, and you can make sure that upon any hover event (mouse over) the size of the objects don't change.


这篇关于滚动条经常出现,当我将鼠标移到某些特定的Div上时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 04:08