我正在玩彩盒演示,看看它是如何工作的。我想为登录页面制作一个简单的颜色框,让它工作并接受困扰我的是我似乎无法获得关闭按钮来显示我想要的图像,这让我发疯了。我不确定我做错了什么。我想知道是不是因为我删除了一些代码行,但我只删除了幻灯片放映功能。有人可以指出我做错了什么。按钮在那里,我只是看不到它....
/*
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;}