问题
I have a html page with several frames in it (also nested framesets). I want to show an overlay over all these frames to show a modal box / light box. Is that possible?
I know, i know, framesets are not good to use, but I want to give it a try!
a modal dialog example
回答1:
Unfortunately completely impossible.
The only HTML Element
that will overlay over a frameset frame
.. is the drop down list portion of a Select
list.
In a similar situation, I built the same "frameset" using iframe
s. It was the only way to overlay over the frames.
来源:https://stackoverflow.com/questions/2089084/modal-dialog-or-div-overlay-over-frameset