我正在玩彩盒演示,看看它是如何工作的。我想为一个登录页面制作一个简单的彩盒让它工作,并且很好地接受我的烦恼是我似乎无法通过关闭按钮显示我想要的图像并且它让我疯狂。我不确定我做错了什么。我想知道它是否因为我删除了一些代码行但我只删除了幻灯片放映功能。有人能指出我做错了什么。按钮就在那里,我看不到它......
/*
ColorBox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
#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;}
#cboxLoadedContent{overflow:auto;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
.cboxIframe{width:100%; height:100%; display:block; border:0;}
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box;}
/*
User Style:
Change the following styles to modify the appearance of ColorBox. They are
ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{background:url('overlay.jpg') repeat 0 0;}
#colorbox{}
#cboxTopLeft{width:21px; height:21px; background:url('overlay.jpg') no-repeat -101px 0;}
#cboxTopRight{width:21px; height:21px; background:url('overlay.jpg') no-repeat -130px 0;}
#cboxBottomLeft{width:21px; height:21px; background:url('overlay.jpg') no-repeat -101px -29px;}
#cboxBottomRight{width:21px; height:21px; background:url('overlay.jpg') no-repeat -130px -29px;}
#cboxMiddleLeft{width:21px; background:url('overlay.jpg') left top repeat-y;}
#cboxMiddleRight{width:21px; background:url('overlay.jpg') right top repeat-y;}
#cboxTopCenter{height:21px; background:url('overlay.jpg') 0 0 repeat-x;}
#cboxBottomCenter{height:21px; background:url('overlay.jpg') 0 -29px repeat-x;}
#cboxContent{background:#fff; overflow:hidden;}
#cboxLoadingOverlay{background:url('loading.gif') no-repeat center center;}
#cboxLoadingGraphic{background:url('loading.gif') no-repeat center center;}
#cboxClose{position:absolute; bottom:0; right:0; background:url('xbutton.png') no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
#cboxClose:hover{background-position:-25px -25px;}
答案 0 :(得分:3)
您是否使用此site
中的colorbox插件然后错误将是以下之一
关闭:“关闭”,
确保您已在jquery.colorbox.js
中指定了该内容的位置是:绝对的;底部:0;右:0;
已在脚本上正确输入
正如你在比赛中提到的那样,你有可能删除这个词
的位置是:相对于;
在第8行