div的style是overflow:hidden,如何判断div的内容是否overflow
rt
[解决办法]
if(divobj.style.width.match(/^\d+/) == " " + divobj.scrollWidth)
{
//not overflow
}
else
{
//overflow
}
[解决办法]
alert(document.getElementById( "div1 ").style.overFlow)
alert(document.getElementById( "div1 ").style.overFlowY)
alert(document.getElementById( "div1 ").style.overFlowX)