0

I do not know how to describe what I want. So I did just draw it: http://i.imgur.com/oMFzJ.jpg

This is what I've got so far. I do not know how to get this overlay

<div id="layer" style="background-color:#212121;border:2px solid #CCCCCC;width:450px;position:absolute;top:20%;left:20%;"> <iframe src="http://www.ebay.com" width="100%" height="300" frameborder="0" scrolling="no"></iframe> <div style="width:100%;"><span style="color:#CCCCCC;float:right;font-size:11px;margin:3px;cursor:pointer;" onclick="document.getElementById('layer').style.display='none';">Close X</span></div> </div>
4

2 回答 2

1

制作模态弹出窗口的一种快速方法是依靠现有库来完成此操作,请考虑jQuery UI

将来请提供有关已尝试过的内容等的更多详细信息。

于 2012-04-05T11:35:49.287 回答
1

我喜欢在我的模态弹出窗口中使用fancybox。页面上的示例使用图像,但您可以插入任何您喜欢的 HTML。

于 2012-04-05T12:01:49.980 回答