简体   繁体   English

为什么 <P> 标签在这里创建黑色背景? 以及如何摆脱边界?

[英]Why Does the <P> tag creates a black background here? and how do I get rid from the border?

I'm trying to create some colorbox element, and I can't figure out why does the 我正在尝试创建一些colorbox元素,但我不知道为什么

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) (试图修改CSS失败)

This is the Fiddle with all relevant code 这是带有所有相关代码的小提琴

The black border come from this css: 黑色边框来自此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 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM