📅  最后修改于: 2022-03-11 15:01:58.450000             🧑  作者: Mango
if ($("#myoverflowingelement").prop('scrollWidth') > $("#myoverflowingelement").width() ) {
//this element is overflowing on the x axis
}
if ($("#myoverflowingelement").prop('scrollHeight') > $("#myoverflowingelement").height() ) {
//this element is overflowing on the y axis
}