I need to check with jQuery if a DIV element is not falling off-screen. The elements are visible and displayed according CSS attributes, but they could be intentionally placed off-screen by:
position: absolute;
left: -1000px;
top: -1000px;
I could not use the jQuery :visible
selector as the element has a non-zero height and width.
I am not doing anything fancy. This absolute position placement is the way my Ajax framework implements the hide/show of some widgets.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…