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)