div的style是overflow:hidden,怎么判断div的内容是否overflow

div的style是overflow:hidden,如何判断div的内容是否overflowrt[解决办法]if(divobj.style.width.match(/^

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)