gpt4 book ai didi

jquery - 灯箱,在 iFrame 外 float 一个关闭按钮

转载 作者:可可西里 更新时间:2023-11-01 13:18:00 25 4
gpt4 key购买 nike

嘿,我决定改写这个问题(而不是创建一个新问题)...

我有一个灯箱 (Colorbox),它可以打开带有基本 HTML 内容的 iFrame。事实上,这是一张图片: alt text http://demo.squeezedigital.com/barrie-test/lightbox-help.gif

我希望关闭按钮位于空心白框所在的位置。

Lightbox (Colorbox) CSS 如下,我似乎没有做任何工作。 :(

(Colorbox JS 文件可以在这里找到:http://colorpowered.com/colorbox/)

#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative; overflow:hidden; }
#cboxLoadedContent{overflow:hidden;}
#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}

#cboxOverlay{background:#890000;}

#colorBox{}
#cboxTopLeft{width:25px; height:25px; background:url(border1.png) 0 0 no-repeat;}
#cboxTopCenter{height:25px; background:url(border1.png) 0 -50px repeat-x;}
#cboxTopRight{width:25px; height:25px; background:url(border1.png) -25px 0 no-repeat;}
#cboxBottomLeft{width:25px; height:25px; background:url(border1.png) 0 -25px no-repeat;}
#cboxBottomCenter{height:25px; background:url(border1.png) 0 -75px repeat-x;}
#cboxBottomRight{width:25px; height:25px; background:url(border1.png) -25px -25px no-repeat;}
#cboxMiddleLeft{width:25px; background:url(border2.png) 0 0 repeat-y;}
#cboxMiddleRight{width:25px; background:url(border2.png) -25px 0 repeat-y;}
#cboxContent{background:#ab0a0e;}
#cboxLoadedContent{margin-bottom:0px;}
#cboxTitle{position:absolute; bottom:0px; left:0; text-align:center; width:100%; color:#999;}
#cboxCurrent{position:absolute; bottom:0px; left:100px; color:#999;}
#cboxSlideshow{position:absolute; bottom:0px; right:42px; color:#444;}
#cboxPrevious{position:absolute; bottom:0px; left:0; color:#444;}
#cboxNext{position:absolute; bottom:0px; left:63px; color:#444;}
#cboxLoadingOverlay{background:url(loading.gif) 5px 5px no-repeat #fff;}
/* THE CLOSE BUTTON */
#cboxClose{position:absolute; top: 10px; right:10px; display:block; color:#000; z-index: 20; display: block; padding-top: 8px; padding-right: 8px; background-image: url(close-button.png); width: 83px; height: 25px;}

/* IE FIXES */
.cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=internet_explorer/borderTopLeft.png, sizingMethod='scale');}
.cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=internet_explorer/borderTopCenter.png, sizingMethod='scale');}
.cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=internet_explorer/borderTopRight.png, sizingMethod='scale');}
.cboxIE #cboxBottomLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=internet_explorer/borderBottomLeft.png, sizingMethod='scale');}
.cboxIE #cboxBottomCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=internet_explorer/borderBottomCenter.png, sizingMethod='scale');}
.cboxIE #cboxBottomRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=internet_explorer/borderBottomRight.png, sizingMethod='scale');}
.cboxIE #cboxMiddleLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=internet_explorer/borderMiddleLeft.png, sizingMethod='scale');}
.cboxIE #cboxMiddleRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=internet_explorer/borderMiddleRight.png, sizingMethod='scale');}

最佳答案

在灯箱的 HTML 中插入按钮(检查脚本文件,它必须在那里)。

关于jquery - 灯箱,在 iFrame 外 float 一个关闭按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2882358/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com