カラーボックスのデモをいじって、それがどのように機能するかを見ていました。ログインページ用のシンプルなカラーボックスを作成したかったのですが、それが機能するようになりました。問題は、閉じるボタンを押して必要な画像を表示できないことです。私は何が間違っているのか正確にはわかりません。コードの一部の行を削除したためかどうか疑問に思っていましたが、スライドショー機能のみを削除しました。誰かが私が間違っていることを指摘できますか。ボタンがあるのに見えない…。
/*
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;}