I'm trying to create some colorbox element, and I can't figure out why does the

tag creates a black background here? and how do I get rid out of the external black border? (tried to modify the CSS with no success)

This is the Fiddle with all relevant code

有帮助吗?

解决方案

The black border come from this css:

#cboxContent{margin-top:32px; overflow:visible; background:#000;}
.cboxIframe{background:#fff;}
#cboxError{padding:50px; border:1px solid #ccc;}
#cboxLoadedContent{background:#000; padding:1px;}
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
#cboxLoadingOverlay{background:#000;}

Try this instead;

#cboxContent{margin-top:32px; overflow:visible; }
.cboxIframe{background:#fff;}
#cboxError{padding:50px; border:1px solid #ccc;}
#cboxLoadedContent{ padding:1px;}
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}

Fiddle: demo

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top